mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-09 17:36:59 +00:00
Cache get_unread_event_push_actions_by_room_for_user
This commit is contained in:
parent
3a00f13436
commit
8f66fe6392
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
from ._base import SQLBaseStore
|
from ._base import SQLBaseStore
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
from synapse.util.caches.descriptors import cachedInlineCallbacks
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import ujson as json
|
import ujson as json
|
||||||
|
@ -46,7 +47,7 @@ class EventPushActionsStore(SQLBaseStore):
|
||||||
values
|
values
|
||||||
)
|
)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@cachedInlineCallbacks(num_args=3)
|
||||||
def get_unread_event_push_actions_by_room_for_user(
|
def get_unread_event_push_actions_by_room_for_user(
|
||||||
self, room_id, user_id, last_read_event_id
|
self, room_id, user_id, last_read_event_id
|
||||||
):
|
):
|
||||||
|
|
Loading…
Add table
Reference in a new issue