Commit 4a86ff7c authored by Aurel's avatar Aurel

display a warning message to let user know a cache factory is missing


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13032 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d1d7cf37
......@@ -30,7 +30,7 @@ import string
from time import time
from AccessControl.SecurityInfo import allow_class
from CachePlugins.BaseCache import CachedMethodError
from zLOG import LOG
from zLOG import LOG, WARNING
DEFAULT_CACHE_SCOPE = 'GLOBAL'
DEFAULT_CACHE_FACTORY = 'erp5_user_interface'
......@@ -187,6 +187,7 @@ class CachingMethod:
*args, **kwd)
except KeyError:
## no caching enabled for this site or no such cache factory
LOG("Cache.__call__", WARNING, "Factory %s not found, method %s execute without cache" %(self.cache_factory, self.callable_object))
value = self.callable_object(*args, **kwd)
return value
......
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