fixed dt = time_expire in memcache, thanks Bruno
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.0.8 (2012-09-13 07:46:11) stable
|
||||
Version 2.0.8 (2012-09-13 08:30:17) stable
|
||||
|
||||
@@ -61,7 +61,7 @@ class MemcacheClientObj(Client):
|
||||
if item:
|
||||
if not isinstance(item,(list,tuple)):
|
||||
value = item
|
||||
elif (item[0] < now - dt): # value expired
|
||||
elif (item[0] < now - time_expire): # value expired
|
||||
item = None # value to be computed
|
||||
else:
|
||||
value = item[1]
|
||||
|
||||
Reference in New Issue
Block a user