summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-05-16 17:01:57 +0100
committerErik Johnston <erik@matrix.org>2016-05-16 17:01:57 +0100
commitc5c5a7403bd1cb3c9e3a3529d220cb1ea55e89df (patch)
treec1990ba5aa2fca69f04d7abbd14dfc1e63628e65 /synapse/app
parentfix logo (diff)
downloadsynapse-c5c5a7403bd1cb3c9e3a3529d220cb1ea55e89df.tar.xz
Make synctl read a cache factor from config file
Diffstat (limited to 'synapse/app')
-rwxr-xr-xsynapse/app/synctl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/app/synctl.py b/synapse/app/synctl.py
index ab3a31d7b7..669a3ae92a 100755
--- a/synapse/app/synctl.py
+++ b/synapse/app/synctl.py
@@ -66,6 +66,10 @@ def main():
 
     config = yaml.load(open(configfile))
     pidfile = config["pid_file"]
+    cache_factor = config.get("synctl_cache_factor", None)
+
+    if cache_factor:
+        os.environ["SYNAPSE_CACHE_FACTOR"] = cache_factor
 
     action = sys.argv[1] if sys.argv[1:] else "usage"
     if action == "start":