diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-28 17:09:09 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-28 17:09:09 +0000 |
commit | 8fe8951a8d997a652d16758a7abed2b8afd117e2 (patch) | |
tree | 75e22beb8919297fbf95dcb0aeef552e8f5ab37e /synapse | |
parent | Prune on fetching (diff) | |
download | synapse-8fe8951a8d997a652d16758a7abed2b8afd117e2.tar.xz |
Cache filters
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/filtering.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/filtering.py b/synapse/storage/filtering.py index f8fc9bdddc..5248736816 100644 --- a/synapse/storage/filtering.py +++ b/synapse/storage/filtering.py @@ -16,12 +16,13 @@ from twisted.internet import defer from ._base import SQLBaseStore +from synapse.util.caches.descriptors import cachedInlineCallbacks import simplejson as json class FilteringStore(SQLBaseStore): - @defer.inlineCallbacks + @cachedInlineCallbacks(num_args=2) def get_user_filter(self, user_localpart, filter_id): def_json = yield self._simple_select_one_onecol( table="user_filters", |