check for __memcache_client not __mc_instance
This commit is contained in:
@@ -15,7 +15,7 @@ from gluon import current
|
||||
DEFAULT_TIME_EXPIRE = 300 # seconds (must be the same as cache.ram)
|
||||
|
||||
def MemcacheClient(*a, **b):
|
||||
if not hasattr(current,'__mc_instance'):
|
||||
if not hasattr(current,'__memcache_client'):
|
||||
current.__memcache_client = MemcacheClientObj(*a, **b)
|
||||
return current.__memcache_client
|
||||
|
||||
|
||||
Reference in New Issue
Block a user