feature: DNS cache + subdomain CRUD + domains cleanup
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
document.addEventListener("DOMContentLoaded", async () => {
|
||||
|
||||
clearDNSCache()
|
||||
await refreshAll()
|
||||
|
||||
setInterval(refreshAll, 30000)
|
||||
setInterval(refreshAll, 60000)
|
||||
|
||||
})
|
||||
|
||||
@@ -31,3 +32,10 @@ async function refreshAll(){
|
||||
|
||||
refreshing = false
|
||||
}
|
||||
|
||||
|
||||
function clearDNSCache(){
|
||||
for(const key in dnsCache){
|
||||
delete dnsCache[key]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user