Commit 150573f5 authored by Jannis Leidel's avatar Jannis Leidel Committed by Sean Bleier

Minor nit biting.

parent 612b4c99
......@@ -89,7 +89,8 @@ class CacheClass(BaseCache):
"""
Set content expiration, if necessary
"""
timeout = timeout or self.default_timeout
if timeout is None:
timeout = self.default_timeout
self._cache.expire(key, timeout)
def delete(self, key):
......
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