mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 19:34:52 -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
|
@ -501,7 +501,7 @@ class RoomMemberStore(SQLBaseStore):
|
|||
|
||||
defer.returnValue(users_in_room)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
@cachedInlineCallbacks(max_entries=10000)
|
||||
def is_host_joined(self, room_id, host):
|
||||
if '%' in host or '_' in host:
|
||||
raise Exception("Invalid host name")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue