mirror of
https://github.com/matrix-org/synapse.git
synced 2025-02-15 11:45:48 +00:00
Add timeout to ResponseCache of /public_rooms
This commit is contained in:
parent
516f884176
commit
a285fe05fd
@ -46,9 +46,12 @@ EMTPY_THIRD_PARTY_ID = ThirdPartyInstanceID(None, None)
|
|||||||
class RoomListHandler(BaseHandler):
|
class RoomListHandler(BaseHandler):
|
||||||
def __init__(self, hs):
|
def __init__(self, hs):
|
||||||
super(RoomListHandler, self).__init__(hs)
|
super(RoomListHandler, self).__init__(hs)
|
||||||
self.response_cache = ResponseCache(hs, "room_list")
|
self.response_cache = ResponseCache(
|
||||||
self.remote_response_cache = ResponseCache(hs, "remote_room_list",
|
hs, "room_list", timeout_ms=10 * 60 * 1000,
|
||||||
timeout_ms=30 * 1000)
|
)
|
||||||
|
self.remote_response_cache = ResponseCache(
|
||||||
|
hs, "remote_room_list", timeout_ms=30 * 1000,
|
||||||
|
)
|
||||||
|
|
||||||
def get_local_public_room_list(self, limit=None, since_token=None,
|
def get_local_public_room_list(self, limit=None, since_token=None,
|
||||||
search_filter=None,
|
search_filter=None,
|
||||||
|
Loading…
Reference in New Issue
Block a user