diff options
author | Erik Johnston <erik@matrix.org> | 2016-02-01 15:05:06 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-02-01 15:05:06 +0000 |
commit | 2d3837bec7d1f721176879dd371baa9d3ab6465d (patch) | |
tree | 2655f4c8f789d5e68448b9239a56e4cac7c209fc /synapse/storage/roommember.py | |
parent | Merge pull request #544 from matrix-org/erikj/stream_rooms (diff) | |
parent | Cache get_room_changes_for_user (diff) | |
download | synapse-2d3837bec7d1f721176879dd371baa9d3ab6465d.tar.xz |
Merge pull request #543 from matrix-org/erikj/sync
Cache get_room_changes_for_user
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r-- | synapse/storage/roommember.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index 1d3e004c90..3065b0c1a5 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py @@ -58,6 +58,10 @@ class RoomMemberStore(SQLBaseStore): txn.call_after(self.get_rooms_for_user.invalidate, (event.state_key,)) txn.call_after(self.get_joined_hosts_for_room.invalidate, (event.room_id,)) 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 + ) def get_room_member(self, user_id, room_id): """Retrieve the current state of a room member. |