[Erp5-report] r29063 - /erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Sep 16 11:33:46 CEST 2009
Author: nicolas
Date: Wed Sep 16 11:33:43 2009
New Revision: 29063
URL: http://svn.erp5.org?rev=29063&view=rev
Log:
Disable clearCache, while memcached server does not support isolation of databases
Modified:
erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py
Modified: erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py?rev=29063&r1=29062&r2=29063&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py [utf8] Wed Sep 16 11:33:43 2009
@@ -175,9 +175,12 @@
return []
def clearCache(self):
+ """This method is disabled because it clear unique storage shared by other
+ client.
+ Use expiration time instead.
+ """
BaseCache.clearCache(self)
- cache_storage = self.getCacheStorage()
- cache_storage.flush_all()
+ LOG('DistributedRamCache', WARNING, 'not allowed to clear memcache storage')
def clearCacheForScope(self, scope):
## memcached doesn't support namespaces (cache scopes) neither getting cached key list.
More information about the Erp5-report
mailing list