mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 07:19:25 -05:00
Make sure stats attribute is present on StaleCacheChain.
This commit is contained in:
@@ -511,6 +511,7 @@ class StaleCacheChain(CacheChain):
|
||||
self.realcache = realcache
|
||||
self.caches = (localcache, realcache) # for the other
|
||||
# CacheChain machinery
|
||||
self.stats = None
|
||||
|
||||
def get(self, key, default=None, stale = False, **kw):
|
||||
if kw.get('allow_local', True) and key in self.caches[0]:
|
||||
|
||||
Reference in New Issue
Block a user