summary refs log tree commit diff
path: root/synapse/push/push_rule_evaluator.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-19 16:07:07 +0000
committerErik Johnston <erik@matrix.org>2016-01-19 16:07:07 +0000
commitfb5d8e58ff280c9fc24123adca3254e46ac63097 (patch)
treeda5f67bac496dadcf4876af4ffe17e26d8d7fbe9 /synapse/push/push_rule_evaluator.py
parentAdd regex cache. Only caculate push actions for users that have sent read rec... (diff)
downloadsynapse-fb5d8e58ff280c9fc24123adca3254e46ac63097.tar.xz
Change regex cache size to 5000
Diffstat (limited to 'synapse/push/push_rule_evaluator.py')
-rw-r--r--synapse/push/push_rule_evaluator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/push/push_rule_evaluator.py b/synapse/push/push_rule_evaluator.py
index 753b6469e2..dca018af95 100644
--- a/synapse/push/push_rule_evaluator.py
+++ b/synapse/push/push_rule_evaluator.py
@@ -309,7 +309,7 @@ def _flatten_dict(d, prefix=[], result={}):
     return result
 
 
-regex_cache = LruCache(100000)
+regex_cache = LruCache(5000)
 
 
 def _compile_regex(regex_str):