diff --git a/product/ERP5Type/CachePlugins/DistributedRamCache.py b/product/ERP5Type/CachePlugins/DistributedRamCache.py index 9a91c809fa44f8af6123b756287f664bba46823c..f505a17ff840143e605bae8932936fa6f213a71e 100644 --- a/product/ERP5Type/CachePlugins/DistributedRamCache.py +++ b/product/ERP5Type/CachePlugins/DistributedRamCache.py @@ -32,13 +32,14 @@ Memcached based cache plugin. from BaseCache import * from time import time +from zLOG import LOG try: import memcache + MEMCACHED_SERVER_MAX_KEY_LENGTH = memcache.SERVER_MAX_KEY_LENGTH except ImportError: - raise CachedMethodError, "Memcache module is not available" + LOG('DistributedRamCache',0,'unable to import memcache') -MEMCACHED_SERVER_MAX_KEY_LENGTH = memcache.SERVER_MAX_KEY_LENGTH ## number of seconds before creating a new connection to memcached server ##KEEP_ALIVE_MEMCACHED_CONNECTION_INTERVAL = 30