[Erp5-report] r33449 fabien - in /erp5/trunk/bt5/erp5_web: PathTemplateItem/ bt/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 5 15:37:53 CET 2010


Author: fabien
Date: Fri Mar  5 15:37:52 2010
New Revision: 33449

URL: http://svn.erp5.org?rev=33449&view=rev
Log:
fix a major cache problem :
All RAM Cache Manager object from erp5_web had the same id than user_ram_cache from erp5_xhtml_style. So the cache used was always the same for this five caches.
After investigation this problem come from the fact that this cache object have been cloned each others and it appears that a zope bug didn't change the cache id in this cases. We are working to solve the zope bug to not have this behaviour anymore on next clonned caches, but for now, this commit fix existing ones.

Modified:
    erp5/trunk/bt5/erp5_web/PathTemplateItem/web_section_ram_cache.xml
    erp5/trunk/bt5/erp5_web/PathTemplateItem/web_section_user_ram_cache.xml
    erp5/trunk/bt5/erp5_web/PathTemplateItem/web_site_ram_cache.xml
    erp5/trunk/bt5/erp5_web/PathTemplateItem/web_site_user_ram_cache.xml
    erp5/trunk/bt5/erp5_web/bt/change_log
    erp5/trunk/bt5/erp5_web/bt/revision

Modified: erp5/trunk/bt5/erp5_web/PathTemplateItem/web_section_ram_cache.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/PathTemplateItem/web_section_ram_cache.xml?rev=33449&r1=33448&r2=33449&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/PathTemplateItem/web_section_ram_cache.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/PathTemplateItem/web_section_ram_cache.xml [utf8] Fri Mar  5 15:37:52 2010
@@ -11,7 +11,7 @@
       <dictionary>
         <item>
             <key> <string>_RAMCacheManager__cacheid</string> </key>
-            <value> <string>140571995811424_1232605080.630355</string> </value>
+            <value> <string>140072430325584_1267799344.968250</string> </value>
         </item>
         <item>
             <key> <string>_settings</string> </key>
@@ -29,8 +29,8 @@
                     <key> <string>request_vars</string> </key>
                     <value>
                       <tuple>
+                        <string>LOCALIZER_LANGUAGE</string>
                         <string>current_web_section_url</string>
-                        <string>web_site_language</string>
                       </tuple>
                     </value>
                 </item>

Modified: erp5/trunk/bt5/erp5_web/PathTemplateItem/web_section_user_ram_cache.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/PathTemplateItem/web_section_user_ram_cache.xml?rev=33449&r1=33448&r2=33449&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/PathTemplateItem/web_section_user_ram_cache.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/PathTemplateItem/web_section_user_ram_cache.xml [utf8] Fri Mar  5 15:37:52 2010
@@ -11,7 +11,7 @@
       <dictionary>
         <item>
             <key> <string>_RAMCacheManager__cacheid</string> </key>
-            <value> <string>140571995811424_1232605080.630355</string> </value>
+            <value> <string>140072436180344_1267799283.709483</string> </value>
         </item>
         <item>
             <key> <string>_settings</string> </key>
@@ -30,8 +30,8 @@
                     <value>
                       <tuple>
                         <string>AUTHENTICATED_USER</string>
+                        <string>LOCALIZER_LANGUAGE</string>
                         <string>current_web_section_url</string>
-                        <string>web_site_language</string>
                       </tuple>
                     </value>
                 </item>

Modified: erp5/trunk/bt5/erp5_web/PathTemplateItem/web_site_ram_cache.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/PathTemplateItem/web_site_ram_cache.xml?rev=33449&r1=33448&r2=33449&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/PathTemplateItem/web_site_ram_cache.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/PathTemplateItem/web_site_ram_cache.xml [utf8] Fri Mar  5 15:37:52 2010
@@ -11,7 +11,7 @@
       <dictionary>
         <item>
             <key> <string>_RAMCacheManager__cacheid</string> </key>
-            <value> <string>140571995811424_1232605080.630355</string> </value>
+            <value> <string>140072430325224_1267799245.877288</string> </value>
         </item>
         <item>
             <key> <string>_settings</string> </key>
@@ -29,8 +29,8 @@
                     <key> <string>request_vars</string> </key>
                     <value>
                       <tuple>
+                        <string>LOCALIZER_LANGUAGE</string>
                         <string>current_web_site_url</string>
-                        <string>web_site_language</string>
                       </tuple>
                     </value>
                 </item>

Modified: erp5/trunk/bt5/erp5_web/PathTemplateItem/web_site_user_ram_cache.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/PathTemplateItem/web_site_user_ram_cache.xml?rev=33449&r1=33448&r2=33449&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/PathTemplateItem/web_site_user_ram_cache.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/PathTemplateItem/web_site_user_ram_cache.xml [utf8] Fri Mar  5 15:37:52 2010
@@ -11,7 +11,7 @@
       <dictionary>
         <item>
             <key> <string>_RAMCacheManager__cacheid</string> </key>
-            <value> <string>140571995811424_1232605080.630355</string> </value>
+            <value> <string>140072436181544_1267799200.241044</string> </value>
         </item>
         <item>
             <key> <string>_settings</string> </key>
@@ -30,8 +30,8 @@
                     <value>
                       <tuple>
                         <string>AUTHENTICATED_USER</string>
+                        <string>LOCALIZER_LANGUAGE</string>
                         <string>current_web_site_url</string>
-                        <string>web_site_language</string>
                       </tuple>
                     </value>
                 </item>

Modified: erp5/trunk/bt5/erp5_web/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/bt/change_log?rev=33449&r1=33448&r2=33449&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/bt/change_log [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/bt/change_log [utf8] Fri Mar  5 15:37:52 2010
@@ -1,3 +1,6 @@
+2010-03-05 fabien
+* fix caches id bug. Now caches should works much better.
+
 2010-02-02 fabien
 * remove WebSection_getPermanentURLForView which was bad (see bug #1507) and use getPermanentUrl() from WebSection.py.
 * WebSection_getPermanentUrl script is not used anymore (and should never be used, it should be called only by getPermanentUrl() from WebSection.py). Now by default, getPermanentUrl(document) always return a link to html content. If you want to get a link to a file (ie. openoffice document, pdf document, ...) you should explicitly specify it :

Modified: erp5/trunk/bt5/erp5_web/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/bt/revision?rev=33449&r1=33448&r2=33449&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/bt/revision [utf8] Fri Mar  5 15:37:52 2010
@@ -1,1 +1,1 @@
-913
+915




More information about the Erp5-report mailing list