Commit f1e5141e authored by Sebastien Robin's avatar Sebastien Robin

try to make ERP5Type running even if memcache is not installed

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11045 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4ec68740
......@@ -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
......
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