[Erp5-report] r23316 - in /erp5/trunk/bt5/erp5_egov: PathTemplateItem/ SkinTemplateItem/por...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 1 13:38:13 CEST 2008
Author: fabien
Date: Mon Sep 1 13:38:07 2008
New Revision: 23316
URL: http://svn.erp5.org?rev=23316&view=rev
Log:
* add a script that set automatically a HTTP Cache on all skins
* add a http cache
The script ERP5Site_setSkinCache have to be launch on a new instance to make the http cache working.
Thanks to yusei for his help.
Added:
erp5/trunk/bt5/erp5_egov/PathTemplateItem/root_http_skin_cache.xml
erp5/trunk/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/ERP5Site_setSkinCache.xml
Modified:
erp5/trunk/bt5/erp5_egov/bt/revision
erp5/trunk/bt5/erp5_egov/bt/template_path_list
Added: erp5/trunk/bt5/erp5_egov/PathTemplateItem/root_http_skin_cache.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_egov/PathTemplateItem/root_http_skin_cache.xml?rev=23316&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_egov/PathTemplateItem/root_http_skin_cache.xml (added)
+++ erp5/trunk/bt5/erp5_egov/PathTemplateItem/root_http_skin_cache.xml Mon Sep 1 13:38:07 2008
@@ -1,0 +1,54 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="AcceleratedHTTPCacheManager" module="Products.StandardCacheManagers.AcceleratedHTTPCacheManager"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_AcceleratedHTTPCacheManager__cacheid</string> </key>
+ <value> <string>211063852_1220267953.233876</string> </value>
+ </item>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_settings</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>anonymous_only</string> </key>
+ <value> <int>1</int> </value>
+ </item>
+ <item>
+ <key> <string>interval</string> </key>
+ <value> <int>3600</int> </value>
+ </item>
+ <item>
+ <key> <string>notify_urls</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>root_http_skin_cache</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/ERP5Site_setSkinCache.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/ERP5Site_setSkinCache.xml?rev=23316&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/ERP5Site_setSkinCache.xml (added)
+++ erp5/trunk/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/ERP5Site_setSkinCache.xml Mon Sep 1 13:38:07 2008
@@ -1,0 +1,167 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>Python_magic</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>Script_magic</string> </key>
+ <value> <int>3</int> </value>
+ </item>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_bind_names</string> </key>
+ <value>
+ <object>
+ <klass>
+ <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+ </klass>
+ <tuple/>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>_asgns</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>name_container</string> </key>
+ <value> <string>container</string> </value>
+ </item>
+ <item>
+ <key> <string>name_context</string> </key>
+ <value> <string>context</string> </value>
+ </item>
+ <item>
+ <key> <string>name_m_self</string> </key>
+ <value> <string>script</string> </value>
+ </item>
+ <item>
+ <key> <string>name_subpath</string> </key>
+ <value> <string>traverse_subpath</string> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>_body</string> </key>
+ <value> <string>cache_manager_id = \'root_http_skin_cache\'\n
+result = []\n
+\n
+def setCache(skin):\n
+ for o in skin.objectValues():\n
+ id = o.id\n
+ if callable(id): id = id()\n
+ if o.meta_type in (\'Image\', \'File\') or id.endswith(\'.css\') or id.endswith(\'.js\'):\n
+ o.ZCacheable_setManagerId(cache_manager_id)\n
+ result.append(id)\n
+ elif o.meta_type == \'Folder\':\n
+ setCache(o)\n
+\n
+for skin in context.portal_skins.objectValues():\n
+ setCache(skin)\n
+\n
+return "\\n".join(result)\n
+</string> </value>
+ </item>
+ <item>
+ <key> <string>_code</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_filepath</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_owner</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_params</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>errors</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>func_code</string> </key>
+ <value>
+ <object>
+ <klass>
+ <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
+ </klass>
+ <tuple/>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>co_argcount</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>co_varnames</string> </key>
+ <value>
+ <tuple>
+ <string>cache_manager_id</string>
+ <string>result</string>
+ <string>setCache</string>
+ <string>_getiter_</string>
+ <string>_getattr_</string>
+<string>context</string>
+ <string>skin</string>
+ </tuple>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>func_defaults</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>ERP5Site_setSkinCache</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_egov/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_egov/bt/revision?rev=23316&r1=23315&r2=23316&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_egov/bt/revision (original)
+++ erp5/trunk/bt5/erp5_egov/bt/revision Mon Sep 1 13:38:07 2008
@@ -1,1 +1,1 @@
-267
+268
Modified: erp5/trunk/bt5/erp5_egov/bt/template_path_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_egov/bt/template_path_list?rev=23316&r1=23315&r2=23316&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_egov/bt/template_path_list (original)
+++ erp5/trunk/bt5/erp5_egov/bt/template_path_list Mon Sep 1 13:38:07 2008
@@ -1,3 +1,4 @@
portal_caches/erp5_session_cache
portal_caches/erp5_session_cache/default_ram_cache
+root_http_skin_cache
web_page_module/9
More information about the Erp5-report
mailing list