Merge branch 'hawkowl/cache-config-without-synctl' of github.com:matrix-org/synapse into hawkowl/cache-config-without-synctl
* 'hawkowl/cache-config-without-synctl' of github.com:matrix-org/synapse: Update synapse/config/cache.pypull/6391/head
commit
14fbf27709
|
@ -44,6 +44,10 @@ class CacheConfig(Config):
|
|||
|
||||
@staticmethod
|
||||
def _reset():
|
||||
"""Resets the caches to their defaults.
|
||||
|
||||
Used for tests.
|
||||
"""
|
||||
CACHE_PROPERTIES["default_size_factor"] = float(os.environ.get(_CACHE_PREFIX, 0.5))
|
||||
CACHE_PROPERTIES["ensure_correct_cache_sizing"] = None
|
||||
_CACHES.clear()
|
||||
|
|
Loading…
Reference in New Issue