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