Make LRU cache not default to treecache & add options to use it

This commit is contained in:
David Baker 2016-01-22 12:10:33 +00:00
parent 5b142788d2
commit 10f76dc5da
4 changed files with 29 additions and 19 deletions

View file

@ -53,7 +53,7 @@ class EventPushActionsStore(SQLBaseStore):
f,
)
@cachedInlineCallbacks(num_args=3, lru=True)
@cachedInlineCallbacks(num_args=3, lru=True, tree=True)
def get_unread_event_push_actions_by_room_for_user(
self, room_id, user_id, last_read_event_id
):