Commit d37cfecc authored by Nicolas Delaby's avatar Nicolas Delaby

Disable clearCache, while memcached server does not support isolation of databases

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29063 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 992c2a0e
...@@ -175,9 +175,12 @@ class DistributedRamCache(BaseCache): ...@@ -175,9 +175,12 @@ class DistributedRamCache(BaseCache):
return [] return []
def clearCache(self): def clearCache(self):
"""This method is disabled because it clear unique storage shared by other
client.
Use expiration time instead.
"""
BaseCache.clearCache(self) BaseCache.clearCache(self)
cache_storage = self.getCacheStorage() LOG('DistributedRamCache', WARNING, 'not allowed to clear memcache storage')
cache_storage.flush_all()
def clearCacheForScope(self, scope): def clearCacheForScope(self, scope):
## memcached doesn't support namespaces (cache scopes) neither getting cached key list. ## memcached doesn't support namespaces (cache scopes) neither getting cached key list.
......
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