[Erp5-report] r24633 - /erp5/trunk/products/ERP5Type/CachePlugins/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Nov 19 14:05:46 CET 2008


Author: ivan
Date: Wed Nov 19 14:05:38 2008
New Revision: 24633

URL: http://svn.erp5.org?rev=24633&view=rev
Log:
Do not set high debug level to memcached plugin (this will print on stdout).
Fix imports.

Modified:
    erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py
    erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py
    erp5/trunk/products/ERP5Type/CachePlugins/SQLCache.py

Modified: erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py?rev=24633&r1=24632&r2=24633&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py [utf8] Wed Nov 19 14:05:38 2008
@@ -29,12 +29,8 @@
 """
 Memcached based cache plugin.
 """
-
-from time import time
 from thread import get_ident
-
 from zLOG import LOG
-
 from BaseCache import BaseCache
 from BaseCache import CacheEntry
 
@@ -52,8 +48,7 @@
 
   def __init__(self, params):
     self._servers = params.get('server', '')
-    self._debugLevel = params.get('debugLevel', 7)
-    self._last_cache_conn_creation_time = time()
+    self._debugLevel = params.get('debugLevel', 0)
     BaseCache.__init__(self)
     
   def initCacheStorage(self):
@@ -78,7 +73,6 @@
     else:
       ## we have memcache_conn for this thread
       return memcache_conn
-
        
   def checkAndFixCacheId(self, cache_id, scope):
     ## memcached doesn't support namespaces (cache scopes) so to "emmulate"

Modified: erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py?rev=24633&r1=24632&r2=24633&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py [utf8] Wed Nov 19 14:05:38 2008
@@ -31,9 +31,7 @@
 """
 
 import time
-
-from BaseCache import BaseCache
-from BaseCache import CacheEntry
+from BaseCache import BaseCache, CacheEntry
 
 def calcPythonObjectMemorySize(i):
   """ Recursive function that will 'walk' over complex python types and caclulate

Modified: erp5/trunk/products/ERP5Type/CachePlugins/SQLCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/SQLCache.py?rev=24633&r1=24632&r2=24633&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/SQLCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/SQLCache.py [utf8] Wed Nov 19 14:05:38 2008
@@ -33,12 +33,8 @@
 from thread import get_ident
 import time
 import base64
-
 from zLOG import LOG
-
-from BaseCache import BaseCache
-from BaseCache import CacheEntry
-from BaseCache import CachedMethodError
+from BaseCache import BaseCache, CacheEntry, CachedMethodError
 
 try:
   import cPickle as pickle




More information about the Erp5-report mailing list