Merge pull request #121 from tinio/memcache-bug

This looks to be a typo left behind from previous code when checking for an __memcache_client
This commit is contained in:
mdipierro
2013-07-02 05:13:56 -07:00
+1 -1
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