diff options
author | Erik Johnston <erik@matrix.org> | 2016-05-16 17:07:35 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-05-16 17:07:35 +0100 |
commit | 678c8a7f1e88716c980d8ca8339ce58cb58455e1 (patch) | |
tree | cc7b6b3c922c00ebc442b588a149c98883011e30 /synapse/app/synctl.py | |
parent | Merge pull request #760 from matrix-org/matthew/preview_url_ip_whitelist (diff) | |
parent | Make synctl read a cache factor from config file (diff) | |
download | synapse-678c8a7f1e88716c980d8ca8339ce58cb58455e1.tar.xz |
Merge pull request #785 from matrix-org/erikj/cache_factor_synctly
Make synctl read a cache factor from config file
Diffstat (limited to '')
-rwxr-xr-x | synapse/app/synctl.py | 4 |
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": |