Make cache_context an explicit option

This commit is contained in:
Erik Johnston 2016-08-19 15:02:38 +01:00
parent f164fd9220
commit dc76a3e909
3 changed files with 30 additions and 11 deletions

View file

@ -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