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

Commit

Permalink
Update TRACK_MEMORY_USAGE on cache config reload
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed May 11, 2022
1 parent 55963ac commit f199d82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions synapse/app/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
from twisted.protocols.tls import TLSMemoryBIOFactory
from twisted.python.threadpool import ThreadPool

import synapse.util.caches
from synapse.api.constants import MAX_PDU_SIZE
from synapse.app import check_bind_error
from synapse.app.phone_stats_home import start_phone_stats_home
Expand Down Expand Up @@ -499,6 +500,7 @@ def reload_cache_config(config: HomeServerConfig) -> None:
previous_cache_config.__dict__,
config.caches.__dict__,
)
synapse.util.caches.TRACK_MEMORY_USAGE = config.caches.track_memory_usage
config.caches.resize_all_caches()


Expand Down

0 comments on commit f199d82

Please sign in to comment.