Fix redis fact_caching_timeout=0 bug

Fixes #12018
pull/11431/merge
James Cammarata 9 years ago
parent 5a5b9f211b
commit 66ed397360

@ -75,7 +75,7 @@ class CacheModule(BaseCacheModule):
def _expire_keys(self):
if self._timeout > 0:
expiry_age = time.time() - self._timeout
self._cache.zremrangebyscore(self._keys_set, 0, expiry_age)
self._cache.zremrangebyscore(self._keys_set, 0, expiry_age)
def keys(self):
self._expire_keys()

Loading…
Cancel
Save