support no expire in getcache

This commit is contained in:
2013-09-07 22:37:13 +02:00
parent 632de1cffb
commit 3dc72c505c
2 changed files with 13 additions and 1 deletions

View File

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