summary refs log tree commit diff
path: root/synapse/storage/pusher.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-06-03 11:44:32 +0100
committerErik Johnston <erik@matrix.org>2016-06-03 11:44:32 +0100
commit722472b48c6b54b53be4649b68e50c2b9bccc39c (patch)
tree1fce6497d0eaa66811259c00137c9c36e7bb121e /synapse/storage/pusher.py
parentMerge pull request #824 from matrix-org/markjh/slaved_presence_store (diff)
parentLoad push rules in storage layer, so that they get cached (diff)
downloadsynapse-722472b48c6b54b53be4649b68e50c2b9bccc39c.tar.xz
Merge pull request #825 from matrix-org/erikj/cache_push_rules
Load push rules in storage layer so that they get cached
Diffstat (limited to 'synapse/storage/pusher.py')
-rw-r--r--synapse/storage/pusher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/pusher.py b/synapse/storage/pusher.py
index 39d5349eaa..a7d7c54d7e 100644
--- a/synapse/storage/pusher.py
+++ b/synapse/storage/pusher.py
@@ -135,7 +135,7 @@ class PusherStore(SQLBaseStore):
             "get_all_updated_pushers", get_all_updated_pushers_txn
         )
 
-    @cachedInlineCallbacks(lru=True, num_args=1)
+    @cachedInlineCallbacks(lru=True, num_args=1, max_entries=15000)
     def get_if_user_has_pusher(self, user_id):
         result = yield self._simple_select_many_batch(
             table='pushers',