[Erp5-report] r12408 - /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateIte...

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Jan 27 08:52:17 CET 2007


Author: jp
Date: Sat Jan 27 08:52:15 2007
New Revision: 12408

URL: http://svn.erp5.org?rev=12408&view=rev
Log:
Do not purge cache whenever we change language. We should use a per language key in cache if needed.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doLanguage.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_renderCachedNavigationBox.xml

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doLanguage.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doLanguage.xml?rev=12408&r1=12407&r2=12408&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doLanguage.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doLanguage.xml Sat Jan 27 08:52:15 2007
@@ -71,10 +71,6 @@
             <value> <string># XXX Localizer-dependent\n
 portal = context.getPortalObject()\n
 portal.Localizer.changeLanguage(select_language)\n
-\n
-# XXX should invalidate cached data specific to current user\n
-from Products.ERP5Type.Cache import clearCache\n
-clearCache()\n
 </string> </value>
         </item>
         <item>
@@ -127,8 +123,6 @@
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>portal</string>
-                            <string>Products.ERP5Type.Cache</string>
-                            <string>clearCache</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_renderCachedNavigationBox.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_renderCachedNavigationBox.xml?rev=12408&r1=12407&r2=12408&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_renderCachedNavigationBox.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_renderCachedNavigationBox.xml Sat Jan 27 08:52:15 2007
@@ -70,7 +70,11 @@
             <key> <string>_body</string> </key>
             <value> <string>from Products.ERP5Type.Cache import CachingMethod\n
 navigation_box_render = context.navigation_box_render\n
-navigation_box_render = CachingMethod(navigation_box_render, ("ERP5Site_renderCachedNavigationBox", context.portal_membership.getAuthenticatedMember().getUserName()), cache_duration=300)\n
+navigation_box_render = CachingMethod(navigation_box_render,\n
+    ("ERP5Site_renderCachedNavigationBox",\n
+     context.portal_membership.getAuthenticatedMember().getUserName(),\n
+     context.Localizer.get_selected_language()\n
+    ),cache_duration=300)\n
 return navigation_box_render()\n
 </string> </value>
         </item>




More information about the Erp5-report mailing list