clear destinations cache in clear_caches fn.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-03-26 05:52:31 -07:00 committed by June
parent c31de51efc
commit edb4468771

View file

@ -266,6 +266,7 @@ roomid_spacehierarchy_cache: {roomid_spacehierarchy_cache}"
}
if amount > 6 {
self.globals.resolver.overrides.write().unwrap().clear();
self.globals.resolver.destinations.write().await.clear();
}
if amount > 7 {
self.globals.resolver.resolver.clear_cache();