Varnish command
varnish:purge
dropcat varnish:purge
Bans varnish with the site base url. Could be used to ban urls after a deploy, not recomended to use on production. Need something like this in the VCL:
// Example Varnish configuration
sub vcl_recv {
# Allow PURGE all domain
if (req.method == "DOMAINPURGE") {
ban("obj.http.x-host == " + req.http.host);
return (synth(200, "Ban added."));
}
sub vcl_backend_response {
set beresp.http.x-host = bereq.http.Host;
}
sub vcl_deliver {
# remove the header from response, only used for bans.
unset resp.http.x-host;
}