mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
CassandraCache: convert 0 time to None ttl.
This commit is contained in:
@@ -707,7 +707,7 @@ class CassandraCache(CacheUtils):
|
||||
if val != NoneResult:
|
||||
ret[key] = self.cf.insert('%s%s' % (prefix, key),
|
||||
{'value': pickle.dumps(val)},
|
||||
ttl = time)
|
||||
ttl = time or None)
|
||||
|
||||
self._warm(keys.keys())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user