Update synapse/config/cache.py

Co-Authored-By: Erik Johnston <erik@matrix.org>
pull/6391/head
Andrew Morgan 2020-04-03 17:25:13 +01:00 committed by GitHub
parent 546c23e496
commit 7117b89b58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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