From 7117b89b583e284328f3f1cdeea12e44ae3e9421 Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Fri, 3 Apr 2020 17:25:13 +0100 Subject: [PATCH] Update synapse/config/cache.py Co-Authored-By: Erik Johnston --- synapse/config/cache.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synapse/config/cache.py b/synapse/config/cache.py index bb68551954..bc90d820b0 100644 --- a/synapse/config/cache.py +++ b/synapse/config/cache.py @@ -55,6 +55,10 @@ class CacheConfig(Config): @staticmethod def _reset(): + """Resets the caches to their defaults. + + Used for tests. + """ global DEFAULT_CACHE_SIZE_FACTOR global _ENSURE_CORRECT_CACHE_SIZING