diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-04-06 13:08:05 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-04-06 13:08:05 +0100 |
commit | 87f2dec8d475f038beb138bc56e3ef76fcb83ec6 (patch) | |
tree | 48465a8a5dba436fe884d7f2ac68ab9927afaba1 /synapse/storage/state.py | |
parent | Merge pull request #692 from matrix-org/markjh/replicate_reshuffle (diff) | |
download | synapse-87f2dec8d475f038beb138bc56e3ef76fcb83ec6.tar.xz |
Make the cache objects be per instance rather than being global
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r-- | synapse/storage/state.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index e9f9406014..c5d2a3a6df 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -273,8 +273,8 @@ class StateStore(SQLBaseStore): desc="_get_state_group_for_event", ) - @cachedList(cache=_get_state_group_for_event.cache, list_name="event_ids", - num_args=1, inlineCallbacks=True) + @cachedList(cached_method_name="_get_state_group_for_event", + list_name="event_ids", num_args=1, inlineCallbacks=True) def _get_state_group_for_events(self, event_ids): """Returns mapping event_id -> state_group """ |