]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: api: purge the entire zone from the cache after a patch operation.
authorKees Monshouwer <mind04@monshouwer.org>
Thu, 31 Oct 2019 08:13:39 +0000 (09:13 +0100)
committermind04 <mind04@monshouwer.org>
Thu, 31 Oct 2019 09:37:19 +0000 (10:37 +0100)
pdns/ws-auth.cc

index c82775ababfce5141f100cf3c66efce33289d8ca..19ca1b5d56ba1f65c69433dc7721bca658e2469e 100644 (file)
@@ -2084,7 +2084,7 @@ static void patchZone(UeberBackend& B, HttpRequest* req, HttpResponse* resp) {
 
   di.backend->commitTransaction();
 
-  purgeAuthCachesExact(zonename);
+  purgeAuthCaches(zonename.toString() + "$");
 
   // now the PTRs
   storeChangedPTRs(B, new_ptrs);