From ff302b24d4b901c09d23942979d49f83a2e84057 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Fri, 13 Sep 2013 13:08:43 +0200 Subject: [PATCH] use distributed ram cache in all cache factories. --- .../default_distributed_ram_cache.xml | 36 +++++++++++++++++++ .../default_distributed_ram_cache.xml | 36 +++++++++++++++++++ .../default_distributed_ram_cache.xml | 36 +++++++++++++++++++ .../portal_caches/erp5_session_cache/1.xml | 2 +- .../default_distributed_ram_cache.xml | 36 +++++++++++++++++++ .../default_distributed_ram_cache.xml | 36 +++++++++++++++++++ .../default_distributed_ram_cache.xml | 36 +++++++++++++++++++ .../default_distributed_ram_cache.xml | 36 +++++++++++++++++++ 8 files changed, 253 insertions(+), 1 deletion(-) create mode 100644 product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_content_long/default_distributed_ram_cache.xml create mode 100644 product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_content_medium/default_distributed_ram_cache.xml create mode 100644 product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_content_short/default_distributed_ram_cache.xml create mode 100644 product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_session_cache/default_distributed_ram_cache.xml create mode 100644 product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_ui_long/default_distributed_ram_cache.xml create mode 100644 product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_ui_medium/default_distributed_ram_cache.xml create mode 100644 product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_ui_short/default_distributed_ram_cache.xml diff --git a/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_content_long/default_distributed_ram_cache.xml b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_content_long/default_distributed_ram_cache.xml new file mode 100644 index 0000000000..f5b88a304e --- /dev/null +++ b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_content_long/default_distributed_ram_cache.xml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Distributed Ram Cache" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>specialise/portal_memcached/default_memcached_plugin</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>default_distributed_ram_cache</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Distributed Ram Cache</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Distributed Ram Cache plugin</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_content_medium/default_distributed_ram_cache.xml b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_content_medium/default_distributed_ram_cache.xml new file mode 100644 index 0000000000..f5b88a304e --- /dev/null +++ b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_content_medium/default_distributed_ram_cache.xml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Distributed Ram Cache" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>specialise/portal_memcached/default_memcached_plugin</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>default_distributed_ram_cache</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Distributed Ram Cache</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Distributed Ram Cache plugin</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_content_short/default_distributed_ram_cache.xml b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_content_short/default_distributed_ram_cache.xml new file mode 100644 index 0000000000..f5b88a304e --- /dev/null +++ b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_content_short/default_distributed_ram_cache.xml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Distributed Ram Cache" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>specialise/portal_memcached/default_memcached_plugin</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>default_distributed_ram_cache</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Distributed Ram Cache</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Distributed Ram Cache plugin</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_session_cache/1.xml b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_session_cache/1.xml index 4a248851ee..c30414f451 100644 --- a/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_session_cache/1.xml +++ b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_session_cache/1.xml @@ -34,7 +34,7 @@ </item> <item> <key> <string>int_index</string> </key> - <value> <int>0</int> </value> + <value> <int>1</int> </value> </item> <item> <key> <string>portal_type</string> </key> diff --git a/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_session_cache/default_distributed_ram_cache.xml b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_session_cache/default_distributed_ram_cache.xml new file mode 100644 index 0000000000..f5b88a304e --- /dev/null +++ b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_session_cache/default_distributed_ram_cache.xml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Distributed Ram Cache" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>specialise/portal_memcached/default_memcached_plugin</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>default_distributed_ram_cache</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Distributed Ram Cache</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Distributed Ram Cache plugin</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_ui_long/default_distributed_ram_cache.xml b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_ui_long/default_distributed_ram_cache.xml new file mode 100644 index 0000000000..f5b88a304e --- /dev/null +++ b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_ui_long/default_distributed_ram_cache.xml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Distributed Ram Cache" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>specialise/portal_memcached/default_memcached_plugin</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>default_distributed_ram_cache</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Distributed Ram Cache</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Distributed Ram Cache plugin</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_ui_medium/default_distributed_ram_cache.xml b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_ui_medium/default_distributed_ram_cache.xml new file mode 100644 index 0000000000..f5b88a304e --- /dev/null +++ b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_ui_medium/default_distributed_ram_cache.xml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Distributed Ram Cache" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>specialise/portal_memcached/default_memcached_plugin</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>default_distributed_ram_cache</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Distributed Ram Cache</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Distributed Ram Cache plugin</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_ui_short/default_distributed_ram_cache.xml b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_ui_short/default_distributed_ram_cache.xml new file mode 100644 index 0000000000..f5b88a304e --- /dev/null +++ b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_caches/erp5_ui_short/default_distributed_ram_cache.xml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Distributed Ram Cache" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>specialise/portal_memcached/default_memcached_plugin</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>default_distributed_ram_cache</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Distributed Ram Cache</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Distributed Ram Cache plugin</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> -- 2.30.9