summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2023-06-08 13:14:40 +0100
committerGitHub <noreply@github.com>2023-06-08 13:14:40 +0100
commitc485ed1c5a4c62ae555531cfd001a5e5f8bc2e44 (patch)
tree1cdd15b55d32190644a3a61aab1cc039fce7b022 /synapse/util
parentQuick & dirty metric for background update status (#15740) (diff)
downloadsynapse-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.py2
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()