0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-14 22:11:47 +01:00

Increase cache size limit

This commit is contained in:
Erik Johnston 2017-01-16 11:56:51 +00:00
parent 2fae34bd2c
commit 01521299c7
2 changed files with 2 additions and 2 deletions

View file

@ -391,7 +391,7 @@ class RoomMemberStore(SQLBaseStore):
)
@cachedInlineCallbacks(num_args=2, cache_context=True, iterable=True,
max_entries=2000)
max_entries=50000)
def _get_joined_users_from_context(self, room_id, state_group, current_state_ids,
cache_context, event=None):
# We don't use `state_group`, it's there so that we can cache based

View file

@ -284,7 +284,7 @@ class StateStore(SQLBaseStore):
return [r[0] for r in results]
return self.runInteraction("get_current_state_for_key", f)
@cached(num_args=2, max_entries=1000, iterable=True)
@cached(num_args=2, max_entries=50000, iterable=True)
def _get_state_group_from_group(self, group, types):
raise NotImplementedError()