]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
API Auth: clear auth cache in PUT
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Mon, 27 Mar 2023 07:37:10 +0000 (09:37 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 11 Aug 2023 10:52:29 +0000 (12:52 +0200)
pdns/ws-auth.cc

index bb854c91be48d591343b10ea83d38d1d8f260455..bd35a8aad6671e31e72e77c9b82e132605e88da3 100644 (file)
@@ -1981,6 +1981,8 @@ static void apiServerZoneDetail(HttpRequest* req, HttpResponse* resp) {
     updateDomainSettingsFromDocument(B, di, zonename, document, zoneWasModified);
     di.backend->commitTransaction();
 
+    purgeAuthCaches(zonename.toString() + "$");
+
     resp->body = "";
     resp->status = 204; // No Content, but indicate success
     return;