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

Go through hosts in parallel instead of 1 host at a time #5

Open dannyhajj opened 5 years ago

dannyhajj commented 5 years ago

I think it might be a good idea to warm the cache by URL instead of by host. Maybe add that as on option after implementing #4.

Currently, that's how it works:

  1. Loop hosts
  2. For each host, load sitemap
  3. Load all URLs in that sitemap for one host.
  4. Repeat for next host

As a command line argument, allow the following instead?

  1. Fetch sitemap on the first host
  2. Loop URLs
  3. For each URL, load it on each host
  4. Repeat for next URL