clear dns and tls-override caches from !admin command.

Signed-off-by: Jason Volk <jason@zemos.net>
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
Jason Volk 2024-03-17 02:02:14 -04:00 committed by June
parent 9b5c4697bf
commit ba03d55879

View file

@ -207,5 +207,11 @@ roomid_spacehierarchy_cache: {roomid_spacehierarchy_cache}"
if amount > 5 {
self.rooms.spaces.roomid_spacehierarchy_cache.lock().await.clear();
}
if amount > 6 {
self.globals.tls_name_override.write().unwrap().clear();
}
if amount > 7 {
self.globals.dns_resolver().clear_cache();
}
}
}