Skip to content

Instantly share code, notes, and snippets.

@lewisvoncken
Last active July 20, 2020 15:04
Show Gist options
  • Save lewisvoncken/2a0e2bc8992be07d1af7ed7092764b23 to your computer and use it in GitHub Desktop.
Save lewisvoncken/2a0e2bc8992be07d1af7ed7092764b23 to your computer and use it in GitHub Desktop.
#!/bin/bash
TIME=$(date +%s)
# xp-varnish.vcl is used so it can not be overwritten by the varnish.vcl generated through the admin
varnishadm vcl.load mag2_$TIME /data/web/magento2/var/xp-varnish.vcl
varnishadm vcl.use mag2_$TIME
printf "${YELLOW}NOTICE${NC} - Please ignore the error below.\n";
varnishadm vcl.discard boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment