mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Add cache for is_host_joined
This commit is contained in:
parent
a837765e8c
commit
d53fe399eb
3 changed files with 7 additions and 2 deletions
|
@ -776,6 +776,11 @@ class EventsStore(SQLBaseStore):
|
|||
txn, self.get_rooms_for_user, (member,)
|
||||
)
|
||||
|
||||
for host in set(get_domain_from_id(u) for u in members_changed):
|
||||
self._invalidate_cache_and_stream(
|
||||
txn, self.is_host_joined, (room_id, host)
|
||||
)
|
||||
|
||||
self._invalidate_cache_and_stream(
|
||||
txn, self.get_users_in_room, (room_id,)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue