mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-02 18:00:51 -05:00
Invalidate the room_member cache if the current state events updates
This commit is contained in:
parent
d0fece8d3c
commit
bfa4a7f8b0
@ -120,6 +120,11 @@ class EventsStore(SQLBaseStore):
|
|||||||
)
|
)
|
||||||
|
|
||||||
for s in current_state:
|
for s in current_state:
|
||||||
|
if s.type == EventTypes.Member:
|
||||||
|
invalidates.extend([
|
||||||
|
(self.get_rooms_for_user.invalidate, s.state_key),
|
||||||
|
(self.get_joined_hosts_for_room.invalidate, s.room_id),
|
||||||
|
])
|
||||||
self._simple_insert_txn(
|
self._simple_insert_txn(
|
||||||
txn,
|
txn,
|
||||||
"current_state_events",
|
"current_state_events",
|
||||||
|
Loading…
Reference in New Issue
Block a user