Co-authored-by: Remi Gacogne <rgacogne+github@valombre.net>
DNSName canon = apiNameToDNSName(req->getvars["domain"]);
bool subtree = (req->getvars.count("subtree") > 0 && req->getvars["subtree"].compare("true") == 0);
- int count = g_recCache->doWipeCache(canon, true, 0xffff);
+ int count = g_recCache->doWipeCache(canon, subtree, 0xffff);
count += broadcastAccFunction<uint64_t>([=]{return pleaseWipePacketCache(canon, subtree, 0xffff);});
count += g_negCache->wipe(canon, subtree);
resp->setBody(Json::object {