Commit 06aa3964 authored by Julien Muchembled's avatar Julien Muchembled

CacheEntry.isExpired: fix expiration condition

Maybe this is enough to fix testCacheTool.test_06_CheckCacheExpiration

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43421 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f738fad6
...@@ -59,7 +59,7 @@ class CacheEntry(object): ...@@ -59,7 +59,7 @@ class CacheEntry(object):
- None means allways expire - None means allways expire
- 0 means never expire - 0 means never expire
""" """
return self.expires_at is None or self.expires_at != 0 and self.expires_at < time() return self.expires_at is None or 0 < self.expires_at <= time()
def getValue(self): def getValue(self):
""" return cached value """ """ return cached value """
......
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