Skip to content

Instantly share code, notes, and snippets.

@Himstar8
Created August 10, 2020 08:29
Show Gist options
  • Save Himstar8/69a694201ba37c0c1e0f58d60e9c7f26 to your computer and use it in GitHub Desktop.
Save Himstar8/69a694201ba37c0c1e0f58d60e9c7f26 to your computer and use it in GitHub Desktop.
Use varnishadm to reload varnish config
#!/bin/bash
TIME=$(date +%s)
varnishadm vcl.load r_$TIME /etc/varnish/default.vcl
varnishadm vcl.use r_$TIME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment