Commit 8227ad29 authored by Ivan Tyagov's avatar Ivan Tyagov

memcached server doesn't support namespaces (cache scopes). When explicitly...

memcached server doesn't support namespaces (cache scopes). When explicitly called clearCacheForScope() we have no choice but clear whole cache.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11128 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 41fa67b1
...@@ -141,5 +141,7 @@ class DistributedRamCache(BaseCache): ...@@ -141,5 +141,7 @@ class DistributedRamCache(BaseCache):
cache_storage.flush_all() 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.
pass ## Becasue we've explicitly called this function instead of clearing specific cache
## scope we have no choice but clear whole cache.
self.clearCache()
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