summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-25 16:16:34 +0000
committerErik Johnston <erik@matrix.org>2016-01-25 16:16:34 +0000
commitf091b73e6909eb6ad26870ccfc647f0ef2f50616 (patch)
treebe9ccbd9f2829506b2db9b4767c66049bea44fbb /synapse/storage
parentMerge pull request #526 from matrix-org/erikj/push_index (diff)
parentPush: Use storage apis that are cached (diff)
downloadsynapse-f091b73e6909eb6ad26870ccfc647f0ef2f50616.tar.xz
Merge pull request #527 from matrix-org/erikj/push_cache
Push: Use storage apis that are cached
Diffstat (limited to 'synapse/storage')
-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: