summary refs log tree commit diff
path: root/synapse/storage/databases/main/cache.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/databases/main/cache.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/databases/main/cache.py')
-rw-r--r--synapse/storage/databases/main/cache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/cache.py b/synapse/storage/databases/main/cache.py
index db6ce83a2b..3b8ed1f7ee 100644
--- a/synapse/storage/databases/main/cache.py
+++ b/synapse/storage/databases/main/cache.py
@@ -205,6 +205,7 @@ class CacheInvalidationWorkerStore(SQLBaseStore):
                 self.get_rooms_for_user_with_stream_ordering.invalidate(
                     (data.state_key,)
                 )
+                self.get_rooms_for_user.invalidate((data.state_key,))
         else:
             raise Exception("Unknown events stream row type %s" % (row.type,))