diff options
author | Erik Johnston <erik@matrix.org> | 2023-06-08 13:14:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-08 13:14:40 +0100 |
commit | c485ed1c5a4c62ae555531cfd001a5e5f8bc2e44 (patch) | |
tree | 1cdd15b55d32190644a3a61aab1cc039fce7b022 /synapse/util | |
parent | Quick & dirty metric for background update status (#15740) (diff) | |
download | synapse-c485ed1c5a4c62ae555531cfd001a5e5f8bc2e44.tar.xz |
Clear event caches when we purge history (#15609)
This should help a little with #13476 --------- Co-authored-by: Patrick Cloke <patrickc@matrix.org>
Diffstat (limited to 'synapse/util')
-rw-r--r-- | synapse/util/caches/lrucache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/lrucache.py b/synapse/util/caches/lrucache.py index ed0da17227..6137c85e10 100644 --- a/synapse/util/caches/lrucache.py +++ b/synapse/util/caches/lrucache.py @@ -862,5 +862,5 @@ class AsyncLruCache(Generic[KT, VT]): async def contains(self, key: KT) -> bool: return self._lru_cache.contains(key) - async def clear(self) -> None: + def clear(self) -> None: self._lru_cache.clear() |