Skip to content

Instantly share code, notes, and snippets.

@nstapelbroek
Forked from blindpet/purgevarnishsingle
Created May 30, 2017 07:27
Show Gist options
  • Save nstapelbroek/87410386d103a526be9cab37520e36ac to your computer and use it in GitHub Desktop.
Save nstapelbroek/87410386d103a526be9cab37520e36ac to your computer and use it in GitHub Desktop.
clear one url home page varnish cache
Enter varnish admin
varnishadm
clear cache for index home page only
ban req.http.host ~ www.htpcguides.com && req.url ~ "^/$"
clear cache for specific page
ban req.http.host ~ www.htpcguides.com && req.url ~ "^/url"
@nstapelbroek
Copy link
Author

logging based on routes example:
varnishncsa -q 'ReqURL ~ "/mobile/v1"'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment