[Erp5-report] r29452 - /erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 7 17:27:48 CEST 2009


Author: nicolas
Date: Wed Oct  7 17:27:47 2009
New Revision: 29452

URL: http://svn.erp5.org?rev=29452&view=rev
Log:
Before this change all RamCache instances share the same dictionary.
So all actions on this dictionary was propagated to all others one.
If one RamCache is cleared, all others follow.
Hopefully, the duration life of a cached value is not affected by this bug.

Modified:
    erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py

Modified: erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py?rev=29452&r1=29451&r2=29452&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py [utf8] Wed Oct  7 17:27:47 2009
@@ -57,10 +57,10 @@
         interfaces.ICachePlugin
     )
 
-  _cache_dict = {}
   cache_expire_check_interval = 300
 
   def __init__(self, params={}):
+    self._cache_dict = {}
     BaseCache.__init__(self)
  
   def initCacheStorage(self):




More information about the Erp5-report mailing list