check for __memcache_client not __mc_instance

This commit is contained in:
Aurelio Tinio
2013-07-01 10:43:33 -07:00
parent 1e8c9e89f3
commit afa96da8e9

View File

@@ -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