diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-05-07 14:26:04 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-05-07 14:26:04 +0100 |
commit | 9316091c8cfe0f8ca7a9a6305b6258804f00335c (patch) | |
tree | c17c15ddbfe0f15d38e3dfd618f32410f1da4240 | |
parent | Increase get_users_in_room cache (diff) | |
download | synapse-9316091c8cfe0f8ca7a9a6305b6258804f00335c.tar.xz |
Return get_users_in_room cache size
-rw-r--r-- | synapse/storage/data_stores/main/roommember.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/data_stores/main/roommember.py b/synapse/storage/data_stores/main/roommember.py index 9bd8d0d318..2715540f7c 100644 --- a/synapse/storage/data_stores/main/roommember.py +++ b/synapse/storage/data_stores/main/roommember.py @@ -164,7 +164,7 @@ class RoomMemberWorkerStore(EventsWorkerStore): hosts = frozenset(get_domain_from_id(user_id) for user_id in user_ids) return hosts - @cached(max_entries=1000000, iterable=True) + @cached(max_entries=100000, iterable=True) def get_users_in_room(self, room_id): logger.info("Traceback: %s", traceback.format_stack()) return self.db.runInteraction( |