Skip to main content

How to clear Varnish cache on CentOS

Use this command to clear the entire cache:

varnishadm "ban req.url ~ /"

Or restart the Varnish service:

service varnish restart

To reload Varnish config:

service varnish reload

To see Varnish statistics:

varnishstat

Geef een reactie

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *