summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-17 15:44:26 +0000
committerErik Johnston <erik@matrix.org>2015-02-17 15:44:26 +0000
commite7e20417ca468c1afe2e27162b9790f860d2da51 (patch)
tree9a4d0814e88480d11fa4f16249acc67271ad1f8b
parentStart the get_pdu cache (diff)
downloadsynapse-e7e20417ca468c1afe2e27162b9790f860d2da51.tar.xz
ExpiringCache: purge every 1/2 interval
Diffstat (limited to '')
-rw-r--r--synapse/util/expiringcache.py2
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()