mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 06:32:54 +00:00
Merge pull request #1828 from matrix-org/erikj/iterable_cache_size
Update LruCache size estimate on clear
This commit is contained in:
commit
841c228533
1 file changed
+2
@@ -189,6 +189,8 @@ class LruCache(object):
|
||||
for cb in node.callbacks:
|
||||
cb()
|
||||
cache.clear()
|
||||
if size_callback:
|
||||
cached_cache_len[0] = 0
|
||||
|
||||
@synchronized
|
||||
def cache_contains(key):
|
||||
|
||||
Reference in new issue
Block a user