summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-19 15:02:38 +0100
committerErik Johnston <erik@matrix.org>2016-08-19 15:02:38 +0100
commitdc76a3e909535d99f0b6b4a76279a14685324dc4 (patch)
tree9263f4befa5e83700387ae231ad1910674b7470a /synapse/storage
parentMove _bulk_get_push_rules_for_room to storage layer (diff)
downloadsynapse-dc76a3e909535d99f0b6b4a76279a14685324dc4.tar.xz
Make cache_context an explicit option
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/push_rule.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/push_rule.py b/synapse/storage/push_rule.py
index ca929bc239..247dd15694 100644
--- a/synapse/storage/push_rule.py
+++ b/synapse/storage/push_rule.py
@@ -134,7 +134,7 @@ class PushRuleStore(SQLBaseStore):
 
         return self._bulk_get_push_rules_for_room(room_id, state_group, current_state)
 
-    @cachedInlineCallbacks(num_args=2)
+    @cachedInlineCallbacks(num_args=2, cache_context=True)
     def _bulk_get_push_rules_for_room(self, room_id, state_group, current_state,
                                       cache_context):
         # We don't use `state_group`, its there so that we can cache based