mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 03:25:53 +03:00
ExpiringCache: purge every 1/2 interval
This commit is contained in:
parent
8b919c00f3
commit
e7e20417ca
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class ExpiringCache(object):
|
|||
def f():
|
||||
self._prune_cache()
|
||||
|
||||
self._clock.looping_call(f, self._expiry_ms)
|
||||
self._clock.looping_call(f, self._expiry_ms/2)
|
||||
|
||||
def __setitem__(self, key, value):
|
||||
now = self._clock.time_msec()
|
||||
|
|
Loading…
Reference in a new issue