summary refs log tree commit diff
path: root/synapse/replication/slave
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2018-03-01 17:12:34 +0000
committerGitHub <noreply@github.com>2018-03-01 17:12:34 +0000
commit9e08a93a7bc1f7b8e0ab46663ae759490ddcbccf (patch)
treeaa29b5ba7f771c42595ee3a5ed79761e86a8e7ac /synapse/replication/slave
parentMerge pull request #2926 from matrix-org/erikj/member_handler_move (diff)
parentFewer lies are better (diff)
downloadsynapse-9e08a93a7bc1f7b8e0ab46663ae759490ddcbccf.tar.xz
Merge pull request #2927 from matrix-org/erikj/read_marker_caches
Improve caching for read_marker API
Diffstat (limited to 'synapse/replication/slave')
-rw-r--r--synapse/replication/slave/storage/account_data.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/replication/slave/storage/account_data.py b/synapse/replication/slave/storage/account_data.py
index 6c8d2954d7..355d14ff7c 100644
--- a/synapse/replication/slave/storage/account_data.py
+++ b/synapse/replication/slave/storage/account_data.py
@@ -56,6 +56,10 @@ class SlavedAccountDataStore(TagsWorkerStore, AccountDataWorkerStore, BaseSlaved
                         (row.data_type, row.user_id,)
                     )
                 self.get_account_data_for_user.invalidate((row.user_id,))
+                self.get_account_data_for_room.invalidate((row.user_id, row.room_id,))
+                self.get_account_data_for_room_and_type.invalidate(
+                    (row.user_id, row.room_id, row.account_data_type,),
+                )
                 self._account_data_stream_cache.entity_has_changed(
                     row.user_id, token
                 )