summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorNick Mills-Barrett <nick@beeper.com>2022-09-29 14:55:12 +0100
committerGitHub <noreply@github.com>2022-09-29 13:55:12 +0000
commita466164647b969efd2e85168144cd75693443c05 (patch)
treef69547590e89cecc7788fb06d770d15a5bba37a3 /synapse/storage/_base.py
parentAllow admins to require a manual approval process before new accounts can be ... (diff)
downloadsynapse-a466164647b969efd2e85168144cd75693443c05.tar.xz
Optimise get_rooms_for_user (drop with_stream_ordering) (#13787)
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 313e8aca7d..bf42aeb8d1 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -94,6 +94,7 @@ class SQLBaseStore(metaclass=ABCMeta):
             self._attempt_to_invalidate_cache(
                 "get_rooms_for_user_with_stream_ordering", (user_id,)
             )
+            self._attempt_to_invalidate_cache("get_rooms_for_user", (user_id,))
 
         # Purge other caches based on room state.
         self._attempt_to_invalidate_cache("get_room_summary", (room_id,))