From 5c1fe0b20e0cf6f1c77fb215ad7d32e438d46cf4 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Thu, 26 Jan 2023 10:56:33 +0000 Subject: [PATCH] Also improve the cache size while we're at it --- synapse/storage/databases/main/room.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/databases/main/room.py b/synapse/storage/databases/main/room.py index c28eced8d9..72e29bbb1b 100644 --- a/synapse/storage/databases/main/room.py +++ b/synapse/storage/databases/main/room.py @@ -1255,7 +1255,7 @@ class RoomWorkerStore(CacheInvalidationWorkerStore): return room_servers - @cached() + @cached(max_entries=10000) async def is_partial_state_room(self, room_id: str) -> bool: """Checks if this room has partial state.