summary refs log tree commit diff
path: root/synapse/storage/room.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-05-21 15:14:26 +0100
committerMark Haines <mark.haines@matrix.org>2015-05-21 16:41:39 +0100
commit53447e9cd380262c16677cfddeda1d75aeebe38c (patch)
treecf563422554aa7308b9df7ee9f0b13fd3a88b33d /synapse/storage/room.py
parentAdd a cache for get_current_state with state_key (diff)
downloadsynapse-53447e9cd380262c16677cfddeda1d75aeebe38c.tar.xz
Add caches for things requested by the pushers
Diffstat (limited to 'synapse/storage/room.py')
-rw-r--r--synapse/storage/room.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/room.py b/synapse/storage/room.py
index f956377632..4612a8aa83 100644
--- a/synapse/storage/room.py
+++ b/synapse/storage/room.py
@@ -17,7 +17,7 @@ from twisted.internet import defer
 
 from synapse.api.errors import StoreError
 
-from ._base import SQLBaseStore
+from ._base import SQLBaseStore, cached
 
 import collections
 import logging
@@ -186,6 +186,7 @@ class RoomStore(SQLBaseStore):
                 }
             )
 
+    @cached()
     @defer.inlineCallbacks
     def get_room_name_and_aliases(self, room_id):
         def f(txn):