summary refs log tree commit diff
path: root/synapse/handlers/room_list.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-16 09:05:11 +0100
committerErik Johnston <erik@matrix.org>2016-09-16 09:05:11 +0100
commit74d4cdee250e4134dd14e4edfb8f5833e28c02b0 (patch)
tree4d64f6a4c095d73aae47b432101e73f84fd96010 /synapse/handlers/room_list.py
parentAdd new storage function to slave store (diff)
downloadsynapse-74d4cdee250e4134dd14e4edfb8f5833e28c02b0.tar.xz
Don't cache searched in /publicRooms
Diffstat (limited to 'synapse/handlers/room_list.py')
-rw-r--r--synapse/handlers/room_list.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/handlers/room_list.py b/synapse/handlers/room_list.py
index 3a75176ef4..37213f4bd8 100644
--- a/synapse/handlers/room_list.py
+++ b/synapse/handlers/room_list.py
@@ -41,11 +41,15 @@ class RoomListHandler(BaseHandler):
 
     def get_local_public_room_list(self, limit=None, since_token=None,
                                    search_filter=None):
+        if search_filter:
+            # We explicitly don't bother caching searches.
+            return self._get_public_room_list(limit, since_token, search_filter)
+
         result = self.response_cache.get((limit, since_token))
         if not result:
             result = self.response_cache.set(
                 (limit, since_token),
-                self._get_public_room_list(limit, since_token, search_filter)
+                self._get_public_room_list(limit, since_token)
             )
         return result