support no expire in getcache
This commit is contained in:
@ -32,7 +32,7 @@ class Cache(object):
|
||||
|
||||
def getcache(self, path, exp):
|
||||
value, created = self._cache[path]
|
||||
if exp <= created:
|
||||
if created is None or exp <= created:
|
||||
return True, value
|
||||
return False, None
|
||||
|
||||
|
Reference in New Issue
Block a user