summary refs log tree commit diff
path: root/synapse/storage/roommember.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-25 13:53:05 +0000
committerErik Johnston <erik@matrix.org>2016-01-25 13:55:18 +0000
commit53cb17366391a13e8d8297c9f4fb3f77fd6b85b7 (patch)
treeedd18b3842278968636257291633a5edc7413fc9 /synapse/storage/roommember.py
parentMerge branch 'erikj/filters' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-53cb17366391a13e8d8297c9f4fb3f77fd6b85b7.tar.xz
Push: Use storage apis that are cached
Diffstat (limited to '')
-rw-r--r--synapse/storage/roommember.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index 68ac88905f..edfecced05 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -110,6 +110,7 @@ class RoomMemberStore(SQLBaseStore):
             membership=membership,
         ).addCallback(self._get_events)
 
+    @cached()
     def get_invites_for_user(self, user_id):
         """ Get all the invite events for a user
         Args: