mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-17 10:40:20 -04:00
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
This commit is contained in:
commit
fe28150cdc
30 changed files with 462 additions and 237 deletions
|
@ -69,11 +69,14 @@ class RoomListHandler(BaseHandler):
|
|||
limit, since_token, search_filter, network_tuple=network_tuple,
|
||||
)
|
||||
|
||||
result = self.response_cache.get((limit, since_token, network_tuple))
|
||||
key = (limit, since_token, network_tuple)
|
||||
result = self.response_cache.get(key)
|
||||
if not result:
|
||||
result = self.response_cache.set(
|
||||
(limit, since_token, network_tuple),
|
||||
self._get_public_room_list(limit, since_token, network_tuple=network_tuple)
|
||||
key,
|
||||
self._get_public_room_list(
|
||||
limit, since_token, network_tuple=network_tuple
|
||||
)
|
||||
)
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue