From: Remi Gacogne Date: Wed, 23 Jan 2019 08:38:42 +0000 (+0100) Subject: auth: Clear caches (meta-data, keys) on domain deletion X-Git-Tag: dnsdist-1.4.0-alpha1~48^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a4fa722749dbd5daa80b3a3f8feba6e4662aec0;p=pdns auth: Clear caches (meta-data, keys) on domain deletion --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 4ef670833..43fde3c9f 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -1673,6 +1673,10 @@ static void apiServerZoneDetail(HttpRequest* req, HttpResponse* resp) { if(!di.backend->deleteDomain(zonename)) throw ApiException("Deleting domain '"+zonename.toString()+"' failed: backend delete failed/unsupported"); + // clear caches + DNSSECKeeper dk(&B); + dk.clearCaches(zonename); + // empty body on success resp->body = ""; resp->status = 204; // No Content: declare that the zone is gone now