Commit 64bb175d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

default value for 'id' and 'cache_factory' should be taken form CachingMethod instance itself.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29684 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5a21d9fa
......@@ -205,8 +205,12 @@ class CachingMethod:
*args, **kwd)
return value
def delete(self, id, cache_factory=DEFAULT_CACHE_FACTORY, scope=DEFAULT_CACHE_SCOPE):
def delete(self, id=None, cache_factory=None, scope=DEFAULT_CACHE_SCOPE):
""" Delete cache key. """
if id is None:
id = self.id
if cache_factory is None:
cache_factory = self.cache_factory
cache_id = self.generateCacheId(id)
cache_factory = CachingMethod.factories[cache_factory]
for cp in cache_factory.getCachePluginList():
......
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