diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-06-16 12:53:15 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-06-16 12:53:15 +0100 |
commit | 364d6167926d5d8b2a312e3d35623d2e05330e0a (patch) | |
tree | 20a0982d674169db75861eba08e0d76b969e8a38 /synapse/storage/_base.py | |
parent | Access replication_url from the worker config directly (diff) | |
download | synapse-364d6167926d5d8b2a312e3d35623d2e05330e0a.tar.xz |
Access the event_cache_size directly from the server object.
This means that the workers can override the event_cache_size directly without clobbering the value in the main synapse config.
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r-- | synapse/storage/_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 32c6677d47..2932880cc5 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -166,7 +166,7 @@ class SQLBaseStore(object): self._get_event_counters = PerformanceCounters() self._get_event_cache = Cache("*getEvent*", keylen=3, lru=True, - max_entries=hs.config.event_cache_size) + max_entries=hs.get_event_cache_size()) self._state_group_cache = DictionaryCache( "*stateGroupCache*", 2000 * CACHE_SIZE_FACTOR |