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:
parent
9b5c4697bf
commit
ba03d55879
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue