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:


centos, linux, varnish cache, webserver

Vincent Verloop

Ervaren ICT Professional met een bewezen geschiedenis van werken in de IT- en dienstensector. Bekwaam in OS X, Search Engine Optimization (SEO), PHP, WordPress en Domain Name System (DNS). Sterke media- en communicatieprofessional met een diploma MBO niveau 4 gericht op ICT-beheer / ICT-beheerder. Volg Vincent Verloop op Twitter.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Webdeveloper + ICT


Vincent Verloop
Boermarke 37
9481 HD Vries

T +31 646413941

Copyright © 2018 Vincent Verloop