mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
dont grow beyond max cache size after inserts
This commit is contained in:
@@ -94,7 +94,7 @@ class CachedResults(object):
|
||||
changed = True
|
||||
|
||||
if changed:
|
||||
query_cache.set(self.iden, self.data)
|
||||
query_cache.set(self.iden, self.data[:precompute_limit])
|
||||
|
||||
def delete(self, item):
|
||||
"""Deletes an item from the cached data."""
|
||||
|
||||
Reference in New Issue
Block a user