sys0dm1n / varnish-cache-warmer

This is a bash script that uses wget and curl to warm up Varnish by targeting the sitemap.xml of the website
GNU General Public License v2.0
38 stars 12 forks source link

Allow warming more than one host at a time #2

Closed dannyhajj closed 5 years ago

dannyhajj commented 5 years ago

In response to #1. This would allow you to input more than one 1 host.

However, I think a couple of improvements can still be made.

  1. Allow passing 1 or more hosts from the command line directly instead of changing it in the file every time.
  2. At line 19, maybe call warm_varnish again and make the function recursive. This would support sitemaps that are more than 2 levels deep.
sys0dm1n commented 5 years ago

Nice one @dannyhajj