summary refs log tree commit diff
path: root/synapse/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-03-23 09:28:07 +0000
committerErik Johnston <erik@matrix.org>2016-03-23 09:28:07 +0000
commit9e2e994395327956f846113566fd18c01f12441a (patch)
tree9b72e71f66c290af27375ef2571f84b1699e8474 /synapse/state.py
parentKey StateHandler._state_cache off of state groups (diff)
downloadsynapse-9e2e994395327956f846113566fd18c01f12441a.tar.xz
Reduce cache size
Diffstat (limited to '')
-rw-r--r--synapse/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/state.py b/synapse/state.py
index 14c0430017..41d32e664a 100644
--- a/synapse/state.py
+++ b/synapse/state.py
@@ -39,7 +39,7 @@ KeyStateTuple = namedtuple("KeyStateTuple", ("context", "type", "state_key"))
 CACHE_SIZE_FACTOR = float(os.environ.get("SYNAPSE_CACHE_FACTOR", 0.1))
 
 
-SIZE_OF_CACHE = int(5000 * CACHE_SIZE_FACTOR)
+SIZE_OF_CACHE = int(1000 * CACHE_SIZE_FACTOR)
 EVICTION_TIMEOUT_SECONDS = 60 * 60