summary refs log tree commit diff
path: root/synapse/storage/roommember.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-06-13 09:56:18 +0100
committerErik Johnston <erik@matrix.org>2017-06-13 09:56:18 +0100
commitd53fe399ebb497f67efc99ebb12d96486503629a (patch)
treed6b1e57629a13036bef7fdca02c5c1c72a40f255 /synapse/storage/roommember.py
parentMerge pull request #2266 from matrix-org/erikj/host_in_room (diff)
downloadsynapse-d53fe399ebb497f67efc99ebb12d96486503629a.tar.xz
Add cache for is_host_joined
Diffstat (limited to '')
-rw-r--r--synapse/storage/roommember.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index e38bbd22a3..457ca288d0 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -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")