diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2022-05-11 16:37:48 +0100 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2022-05-11 16:37:48 +0100 |
commit | 32e64b4bcddf0234ea11e0975f5c8ee18b8bf6f5 (patch) | |
tree | 8c325b47e0558261c7fde88671210d1685b07dc2 | |
parent | Fix `/messages` throwing a 500 when querying for non-existent room (#12683) (diff) | |
download | synapse-32e64b4bcddf0234ea11e0975f5c8ee18b8bf6f5.tar.xz |
Don't prune cache entries for get_or_create_notice_room_for_user
Diffstat (limited to '')
-rw-r--r-- | synapse/server_notices/server_notices_manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/server_notices/server_notices_manager.py b/synapse/server_notices/server_notices_manager.py index 48eae5fa06..9333e2a634 100644 --- a/synapse/server_notices/server_notices_manager.py +++ b/synapse/server_notices/server_notices_manager.py @@ -90,7 +90,7 @@ class ServerNoticesManager: ) return event - @cached() + @cached(prune_unread_entries=False) async def get_or_create_notice_room_for_user(self, user_id: str) -> str: """Get the room for notices for a given user |