Commit c53e0beb authored by Nicolas Delaby's avatar Nicolas Delaby

Check that specialise value is not None

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27558 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 12b7e26f
......@@ -86,9 +86,9 @@ class CacheTool(BaseTool):
if cp_meta_type == 'ERP5 Ram Cache':
cache_obj = RamCache()
elif cp_meta_type == 'ERP5 Distributed Ram Cache':
## even thougn we have such plugin in ZODB that doens't mean
## we have corresponding memcache module installed
if memcache is not None:
## even thougn we have such plugin in ZODB that doens't mean
## we have corresponding memcache module installed
if memcache is not None or cp.getSpecialiseValue() is not None:
try:
cache_obj = DistributedRamCache(
{'server':cp.getSpecialiseValue().getUrlString()})
......
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