[Erp5-report] r11045 - /erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 2 09:58:56 CET 2006
Author: seb
Date: Thu Nov 2 09:58:54 2006
New Revision: 11045
URL: http://svn.erp5.org?rev=11045&view=rev
Log:
try to make ERP5Type running even if memcache is not installed
Modified:
erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py
Modified: erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py?rev=11045&r1=11044&r2=11045&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py Thu Nov 2 09:58:54 2006
@@ -32,13 +32,14 @@
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
More information about the Erp5-report
mailing list