Commit 074465ad authored by Nicolas Delaby's avatar Nicolas Delaby

Check that cache_entry is not expired also

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29120 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 39acb8c1
......@@ -141,7 +141,7 @@ class DistributedRamCache(BaseCache):
cache_storage = self.getCacheStorage()
cache_id = self.checkAndFixCacheId(cache_id, scope)
cache_entry = cache_storage.get(cache_id)
if isinstance(cache_entry, CacheEntry):
if isinstance(cache_entry, CacheEntry) and not cache_entry.isExpired():
return True
else:
return False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment