Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit f199d82

Browse files
author
David Robertson
committed
Update TRACK_MEMORY_USAGE on cache config reload
1 parent 55963ac commit f199d82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

synapse/app/_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
from twisted.protocols.tls import TLSMemoryBIOFactory
4949
from twisted.python.threadpool import ThreadPool
5050

51+
import synapse.util.caches
5152
from synapse.api.constants import MAX_PDU_SIZE
5253
from synapse.app import check_bind_error
5354
from synapse.app.phone_stats_home import start_phone_stats_home
@@ -499,6 +500,7 @@ def reload_cache_config(config: HomeServerConfig) -> None:
499500
previous_cache_config.__dict__,
500501
config.caches.__dict__,
501502
)
503+
synapse.util.caches.TRACK_MEMORY_USAGE = config.caches.track_memory_usage
502504
config.caches.resize_all_caches()
503505

504506

0 commit comments

Comments
 (0)