diff options
author | Erik Johnston <erik@matrix.org> | 2015-02-17 15:44:26 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-02-17 15:44:26 +0000 |
commit | e7e20417ca468c1afe2e27162b9790f860d2da51 (patch) | |
tree | 9a4d0814e88480d11fa4f16249acc67271ad1f8b | |
parent | Start the get_pdu cache (diff) | |
download | synapse-e7e20417ca468c1afe2e27162b9790f860d2da51.tar.xz |
ExpiringCache: purge every 1/2 interval
-rw-r--r-- | synapse/util/expiringcache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/expiringcache.py b/synapse/util/expiringcache.py index fb5b27ad10..3c8409b164 100644 --- a/synapse/util/expiringcache.py +++ b/synapse/util/expiringcache.py @@ -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() |