summary refs log tree commit diff
path: root/synapse/replication/slave
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-03-01 15:30:57 +0000
committerErik Johnston <erik@matrix.org>2018-03-01 17:08:17 +0000
commit33bebb63f34aa947a9a48920589cd63d27f1235c (patch)
tree5fd38456ee5da398b453bc43b35c03e6bce87bc5 /synapse/replication/slave
parentMerge pull request #2920 from matrix-org/erikj/retry_send_event (diff)
downloadsynapse-33bebb63f34aa947a9a48920589cd63d27f1235c.tar.xz
Add some caches to help read marker API
Diffstat (limited to 'synapse/replication/slave')
-rw-r--r--synapse/replication/slave/storage/account_data.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/replication/slave/storage/account_data.py b/synapse/replication/slave/storage/account_data.py
index 6c8d2954d7..970ac4c24d 100644
--- a/synapse/replication/slave/storage/account_data.py
+++ b/synapse/replication/slave/storage/account_data.py
@@ -56,6 +56,7 @@ 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._account_data_stream_cache.entity_has_changed(
                     row.user_id, token
                 )