-
-
Save nstapelbroek/87410386d103a526be9cab37520e36ac to your computer and use it in GitHub Desktop.
clear one url home page varnish cache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
logging based on routes example:
varnishncsa -q 'ReqURL ~ "/mobile/v1"'