summary refs log tree commit diff
path: root/synapse/storage/roommember.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-02-01 13:12:30 +0000
committerGitHub <noreply@github.com>2017-02-01 13:12:30 +0000
commit62f6b86ba70dd239bc99e0cf0ce09f815d280e56 (patch)
treebe0a5a99799bde475f9aca75054d69334d43ea05 /synapse/storage/roommember.py
parentAdd m.room.member type to query (diff)
parentRemote membership tests for replication (diff)
downloadsynapse-62f6b86ba70dd239bc99e0cf0ce09f815d280e56.tar.xz
Merge pull request #1868 from matrix-org/erikj/replication_cache
Only invalidate membership caches based on the cache stream
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r--synapse/storage/roommember.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index 3a99dc2349..ee800d074f 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -66,8 +66,6 @@ class RoomMemberStore(SQLBaseStore):
         )
 
         for event in events:
-            txn.call_after(self.get_rooms_for_user.invalidate, (event.state_key,))
-            txn.call_after(self.get_users_in_room.invalidate, (event.room_id,))
             txn.call_after(
                 self._membership_stream_cache.entity_has_changed,
                 event.state_key, event.internal_metadata.stream_ordering