summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-02-14 13:45:30 +0000
committerErik Johnston <erik@matrix.org>2018-02-15 09:51:09 +0000
commit2a9c3aea89c5884dd0a31df2cf0fa6de19a81fa5 (patch)
tree922d35b7f33baba55900c7062f8e3aa22b2ae97d
parentMerge pull request #2867 from matrix-org/rav/rework_purge (diff)
downloadsynapse-2a9c3aea89c5884dd0a31df2cf0fa6de19a81fa5.tar.xz
Add timeout to ResponseCache of /public_rooms
-rw-r--r--synapse/handlers/room_list.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room_list.py b/synapse/handlers/room_list.py
index dfa09141ed..387b0692d8 100644
--- a/synapse/handlers/room_list.py
+++ b/synapse/handlers/room_list.py
@@ -44,7 +44,7 @@ EMTPY_THIRD_PARTY_ID = ThirdPartyInstanceID(None, None)
 class RoomListHandler(BaseHandler):
     def __init__(self, hs):
         super(RoomListHandler, self).__init__(hs)
-        self.response_cache = ResponseCache(hs)
+        self.response_cache = ResponseCache(hs, timeout_ms=10 * 60 * 1000)
         self.remote_response_cache = ResponseCache(hs, timeout_ms=30 * 1000)
 
     def get_local_public_room_list(self, limit=None, since_token=None,