diff --git a/bt5/erp5_base/PathTemplateItem/portal_caches/document_cache_factory.xml b/bt5/erp5_base/PathTemplateItem/portal_caches/document_cache_factory.xml
new file mode 100644
index 0000000000000000000000000000000000000000..ab50c187d6142a24647904cf9d56f20d938d86db
--- /dev/null
+++ b/bt5/erp5_base/PathTemplateItem/portal_caches/document_cache_factory.xml
@@ -0,0 +1,101 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="CacheFactory" module="Products.ERP5Type.Document.CacheFactory"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_count</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>_mt_index</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>_tree</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>cache_duration</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>document_cache_factory</string> </value>
+        </item>
+        <item>
+            <key> <string>last_id</string> </key>
+            <value> <string>7</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Cache Factory</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Documents Cache</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Length" module="BTrees.Length"/>
+    </pickle>
+    <pickle> <int>0</int> </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="OOBTree" module="BTrees._OOBTree"/>
+    </pickle>
+    <pickle>
+      <tuple>
+        <tuple>
+          <tuple>
+            <tuple>
+              <string>ERP5 Zodb Cache</string>
+              <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
+            </tuple>
+          </tuple>
+        </tuple>
+      </tuple>
+    </pickle>
+  </record>
+  <record id="4" aka="AAAAAAAAAAQ=">
+    <pickle>
+      <global name="OOBTree" module="BTrees._OOBTree"/>
+    </pickle>
+    <pickle>
+      <none/>
+    </pickle>
+  </record>
+  <record id="5" aka="AAAAAAAAAAU=">
+    <pickle>
+      <global name="OIBTree" module="BTrees._OIBTree"/>
+    </pickle>
+    <pickle>
+      <tuple>
+        <tuple>
+          <tuple>
+            <tuple>
+              <string>1</string>
+              <int>1</int>
+            </tuple>
+          </tuple>
+        </tuple>
+      </tuple>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_base/PathTemplateItem/portal_caches/document_cache_factory/persistent_cache_plugin.xml b/bt5/erp5_base/PathTemplateItem/portal_caches/document_cache_factory/persistent_cache_plugin.xml
new file mode 100644
index 0000000000000000000000000000000000000000..bd7fbe141b0999d82313e73ce89625b594700468
--- /dev/null
+++ b/bt5/erp5_base/PathTemplateItem/portal_caches/document_cache_factory/persistent_cache_plugin.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="DistributedRamCache" module="Products.ERP5Type.Document.DistributedRamCache"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_local_properties</string> </key>
+            <value>
+              <tuple>
+                <dictionary>
+                  <item>
+                      <key> <string>id</string> </key>
+                      <value> <string>cache_duration</string> </value>
+                  </item>
+                  <item>
+                      <key> <string>type</string> </key>
+                      <value> <string>int</string> </value>
+                  </item>
+                </dictionary>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>cache_duration</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>specialise/portal_memcached/persistent_memcached_plugin</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>persistent_cache_plugin</string> </value>
+        </item>
+        <item>
+            <key> <string>int_index</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>persistent_storage</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Distributed Ram Cache</string> </value>
+        </item>
+        <item>
+            <key> <string>server</string> </key>
+            <value> <string>127.0.0.1:12121</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>MemcacheDB</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_base/PathTemplateItem/portal_memcached/persistent_memcached_plugin.xml b/bt5/erp5_base/PathTemplateItem/portal_memcached/persistent_memcached_plugin.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d710c2f05d8f28dbdf4612c95649dc25a6a58880
--- /dev/null
+++ b/bt5/erp5_base/PathTemplateItem/portal_memcached/persistent_memcached_plugin.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="MemcachedPlugin" module="Products.ERP5Type.Document.MemcachedPlugin"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_local_properties</string> </key>
+            <value>
+              <tuple>
+                <dictionary>
+                  <item>
+                      <key> <string>id</string> </key>
+                      <value> <string>url_string</string> </value>
+                  </item>
+                  <item>
+                      <key> <string>type</string> </key>
+                      <value> <string>string</string> </value>
+                  </item>
+                </dictionary>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>persistent_memcached_plugin</string> </value>
+        </item>
+        <item>
+            <key> <string>int_index</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Memcached Plugin</string> </value>
+        </item>
+        <item>
+            <key> <string>server_max_key_length</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>server_max_value_length</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Flare</string> </value>
+        </item>
+        <item>
+            <key> <string>url_string</string> </key>
+            <value> <string>127.0.0.1:12121</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_base/bt/change_log b/bt5/erp5_base/bt/change_log
index f932b5ebd01a48b2044ebd11c01ff1308607d790..fdc36bbfbb29f7515f658293ccbb8aa71bb602a1 100644
--- a/bt5/erp5_base/bt/change_log
+++ b/bt5/erp5_base/bt/change_log
@@ -1,3 +1,7 @@
+2009-07-03 nicolas
+* add cache plugin and memcached plugin for Persistent Caching of document conversions.
+Flare should be installed and running
+
 2009-04-18 Kazuhiko
 * Version 5.4.1
 
diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision
index 09bd682e66b027f08ea6e0b72278cab363b2a83a..e1f27603b67cf0f499c57323674beccfac4e31e7 100644
--- a/bt5/erp5_base/bt/revision
+++ b/bt5/erp5_base/bt/revision
@@ -1 +1 @@
-611
\ No newline at end of file
+613
\ No newline at end of file
diff --git a/bt5/erp5_base/bt/template_path_list b/bt5/erp5_base/bt/template_path_list
index da7682ae58080798318730542c476341483c2f9e..f956524997af5b6d33696d75f541a44d0d4a9ddf 100644
--- a/bt5/erp5_base/bt/template_path_list
+++ b/bt5/erp5_base/bt/template_path_list
@@ -1,6 +1,9 @@
+portal_caches/document_cache_factory
+portal_caches/document_cache_factory/**
 portal_categories/collect_order_group/cell
 portal_categories/collect_order_group/delivery
 portal_categories/collect_order_group/line
 portal_categories/divergence_scope/category
 portal_categories/divergence_scope/property
-portal_categories/divergence_scope/quantity
\ No newline at end of file
+portal_categories/divergence_scope/quantity
+portal_memcached/persistent_memcached_plugin
\ No newline at end of file