summary refs log tree commit diff
path: root/synapse/storage/roommember.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-01-31 16:09:03 +0000
committerErik Johnston <erik@matrix.org>2017-01-31 16:09:03 +0000
commit458b6f473314a81d7e671fc2fc8c30d3259924c4 (patch)
tree869e9502a78ceb90a77338b96ddcd2e64b68296e /synapse/storage/roommember.py
parentMerge pull request #1864 from matrix-org/erikj/device_list_fixes (diff)
downloadsynapse-458b6f473314a81d7e671fc2fc8c30d3259924c4.tar.xz
Only invalidate membership caches based on the cache stream
Before we completely invalidated get_users_in_room whenever we updated
any current_state_events table. This was way too aggressive.
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 0fdcf29085..845def8467 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