Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Up the cache it will be hit often now
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitobeeper committed Mar 3, 2023
1 parent 520adfd commit f0f1137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def _get_room_summary_txn(
"get_room_summary", _get_room_summary_txn
)

@cached()
@cached(max_entries=100000)
async def get_number_joined_users_in_room(self, room_id: str) -> int:
return await self.db_pool.simple_select_one_onecol(
table="current_state_events",
Expand Down

0 comments on commit f0f1137

Please sign in to comment.