From ba03d558799f269a04729b641f18bcf77d31252d Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 17 Mar 2024 02:02:14 -0400 Subject: [PATCH] clear dns and tls-override caches from !admin command. Signed-off-by: Jason Volk Signed-off-by: strawberry --- src/service/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/service/mod.rs b/src/service/mod.rs index 8d37061c..1667dc81 100644 --- a/src/service/mod.rs +++ b/src/service/mod.rs @@ -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(); + } } }