Merge pull request #1868 from matrix-org/erikj/replication_cache

Only invalidate membership caches based on the cache stream
This commit is contained in:
Erik Johnston 2017-02-01 13:12:30 +00:00 committed by GitHub
commit 62f6b86ba7
5 changed files with 5 additions and 84 deletions

View file

@ -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