summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-11-13 10:30:38 +0000
committerRichard van der Hoff <richard@matrix.org>2017-11-14 11:43:58 +0000
commit4dd1bfa8c18a3dc9df934a61771ae1e85b313b7e (patch)
tree5277789ee555db0a2ac86c58e2c839eaf99f5fa0 /synapse/storage/_base.py
parentMerge pull request #2658 from matrix-org/rav/store_heirarchy_init (diff)
downloadsynapse-4dd1bfa8c18a3dc9df934a61771ae1e85b313b7e.tar.xz
Revert "Revert "move _state_group_cache to statestore""
We're going to fix this properly on this branch, so that the _state_group_cache
can end up in StateGroupReadStore.

This reverts commit ab335edb023d66cd0be439e045b10ca104b73cb5.
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index e94917d9cd..7ebd4f189d 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -16,8 +16,6 @@ import logging
 
 from synapse.api.errors import StoreError
 from synapse.util.logcontext import LoggingContext, PreserveLoggingContext
-from synapse.util.caches import CACHE_SIZE_FACTOR
-from synapse.util.caches.dictionary_cache import DictionaryCache
 from synapse.util.caches.descriptors import Cache
 from synapse.storage.engines import PostgresEngine
 import synapse.metrics
@@ -180,10 +178,6 @@ class SQLBaseStore(object):
         self._get_event_cache = Cache("*getEvent*", keylen=3,
                                       max_entries=hs.config.event_cache_size)
 
-        self._state_group_cache = DictionaryCache(
-            "*stateGroupCache*", 100000 * CACHE_SIZE_FACTOR
-        )
-
         self._event_fetch_lock = threading.Condition()
         self._event_fetch_list = []
         self._event_fetch_ongoing = 0