diff options
author | Erik Johnston <erik@matrix.org> | 2018-02-14 13:45:30 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-02-15 09:51:09 +0000 |
commit | 2a9c3aea89c5884dd0a31df2cf0fa6de19a81fa5 (patch) | |
tree | 922d35b7f33baba55900c7062f8e3aa22b2ae97d | |
parent | Merge pull request #2867 from matrix-org/rav/rework_purge (diff) | |
download | synapse-2a9c3aea89c5884dd0a31df2cf0fa6de19a81fa5.tar.xz |
Add timeout to ResponseCache of /public_rooms
-rw-r--r-- | synapse/handlers/room_list.py | 2 |
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, |