Last active
June 12, 2020 16:07
-
-
Save 6ui11em/ec920469042269cf4a2ed0faaf07005d to your computer and use it in GitHub Desktop.
Command: Clear url from varnish #varnish #cache #purge
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 ~ windparadise.com && req.url ~ "^/$" | |
# clear cache for specific page | |
ban req.http.host ~ windparadise.com && req.url ~ "^/url" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment