summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-07-11 21:08:39 +0100
committerGitHub <noreply@github.com>2022-07-11 20:08:39 +0000
commite5716b631c6fe0b0a8510f16a5bffddb6396f434 (patch)
tree50809aa2b1cb9c5620c9f8fee4f4f78c330735f5 /synapse/storage/_base.py
parentAdd a sample bash script to docs for creating multiple worker files (#13032) (diff)
downloadsynapse-e5716b631c6fe0b0a8510f16a5bffddb6396f434.tar.xz
Don't pull out the full state when calculating push actions (#13078)
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index abfc56b061..b8c8dcd76b 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -75,6 +75,15 @@ class SQLBaseStore(metaclass=ABCMeta):
             self._attempt_to_invalidate_cache(
                 "get_users_in_room_with_profiles", (room_id,)
             )
+            self._attempt_to_invalidate_cache(
+                "get_number_joined_users_in_room", (room_id,)
+            )
+            self._attempt_to_invalidate_cache("get_local_users_in_room", (room_id,))
+
+        for user_id in members_changed:
+            self._attempt_to_invalidate_cache(
+                "get_user_in_room_with_profile", (room_id, user_id)
+            )
 
         # Purge other caches based on room state.
         self._attempt_to_invalidate_cache("get_room_summary", (room_id,))