diff options
author | Erik Johnston <erikj@jki.re> | 2016-09-15 15:01:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-15 15:01:47 +0100 |
commit | 241d7d2d62c760e9aa93f776b76f70fc8c60ba6a (patch) | |
tree | 59943f9ff79c63d6364b89ecd3329f5c49c61b3d /synapse/app | |
parent | Merge pull request #1123 from matrix-org/erikj/public_room_cache (diff) | |
parent | Enable state caches on workers (diff) | |
download | synapse-241d7d2d62c760e9aa93f776b76f70fc8c60ba6a.tar.xz |
Merge pull request #1124 from matrix-org/erikj/enable_state_caching_workers
Enable state caches on workers
Diffstat (limited to 'synapse/app')
-rw-r--r-- | synapse/app/appservice.py | 1 | ||||
-rw-r--r-- | synapse/app/client_reader.py | 1 | ||||
-rw-r--r-- | synapse/app/federation_reader.py | 1 | ||||
-rw-r--r-- | synapse/app/media_repository.py | 1 | ||||
-rw-r--r-- | synapse/app/pusher.py | 1 | ||||
-rw-r--r-- | synapse/app/synchrotron.py | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/synapse/app/appservice.py b/synapse/app/appservice.py index 57587aed25..4e62a84b28 100644 --- a/synapse/app/appservice.py +++ b/synapse/app/appservice.py @@ -187,6 +187,7 @@ def start(config_options): def start(): ps.replicate() ps.get_datastore().start_profiling() + ps.get_state_handler().start_caching() reactor.callWhenRunning(start) diff --git a/synapse/app/client_reader.py b/synapse/app/client_reader.py index f356f5fbd4..9aaa3bace2 100644 --- a/synapse/app/client_reader.py +++ b/synapse/app/client_reader.py @@ -191,6 +191,7 @@ def start(config_options): reactor.run() def start(): + ss.get_state_handler().start_caching() ss.get_datastore().start_profiling() ss.replicate() diff --git a/synapse/app/federation_reader.py b/synapse/app/federation_reader.py index 7355499ae2..1f5ae1937e 100644 --- a/synapse/app/federation_reader.py +++ b/synapse/app/federation_reader.py @@ -182,6 +182,7 @@ def start(config_options): reactor.run() def start(): + ss.get_state_handler().start_caching() ss.get_datastore().start_profiling() ss.replicate() diff --git a/synapse/app/media_repository.py b/synapse/app/media_repository.py index 9d4c4a0750..6e5ec01c6c 100644 --- a/synapse/app/media_repository.py +++ b/synapse/app/media_repository.py @@ -188,6 +188,7 @@ def start(config_options): reactor.run() def start(): + ss.get_state_handler().start_caching() ss.get_datastore().start_profiling() ss.replicate() diff --git a/synapse/app/pusher.py b/synapse/app/pusher.py index 8d755a4b33..d59f4a571c 100644 --- a/synapse/app/pusher.py +++ b/synapse/app/pusher.py @@ -276,6 +276,7 @@ def start(config_options): ps.replicate() ps.get_pusherpool().start() ps.get_datastore().start_profiling() + ps.get_state_handler().start_caching() reactor.callWhenRunning(start) diff --git a/synapse/app/synchrotron.py b/synapse/app/synchrotron.py index dbaa48035d..46d390fd0f 100644 --- a/synapse/app/synchrotron.py +++ b/synapse/app/synchrotron.py @@ -465,6 +465,7 @@ def start(config_options): def start(): ss.get_datastore().start_profiling() ss.replicate() + ss.get_state_handler().start_caching() reactor.callWhenRunning(start) |