Commit fb72ce12 authored by Nicolas Delaby's avatar Nicolas Delaby

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.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29452 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67f7ac37
...@@ -57,10 +57,10 @@ class RamCache(BaseCache): ...@@ -57,10 +57,10 @@ class RamCache(BaseCache):
interfaces.ICachePlugin interfaces.ICachePlugin
) )
_cache_dict = {}
cache_expire_check_interval = 300 cache_expire_check_interval = 300
def __init__(self, params={}): def __init__(self, params={}):
self._cache_dict = {}
BaseCache.__init__(self) BaseCache.__init__(self)
def initCacheStorage(self): def initCacheStorage(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment