]> 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)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 21 Nov 2019 09:05:57 +0000 (10:05 +0100)
pdns/ws-auth.cc

index aba49e3e2240749af1917efb043faa9741521356..5f8132f250640452742994abc06d3d4228a7560f 100644 (file)
@@ -2094,7 +2094,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);