mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:56:07 -04:00
Make the cache objects be per instance rather than being global
This commit is contained in:
parent
2e308a3a38
commit
87f2dec8d4
4 changed files with 29 additions and 26 deletions
|
@ -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
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue