Cache regenerator


Requires XML sitemap module (
The code allows you to create cache for all pages contained in your xml sitemap.

Get raw version
  1. #!/bin/bash
  2. # Drupal cron
  3. wget -O - -o /dev/null
  4. # Visit every page from your sitemap.xml
  5. wget --quiet --output-document - | egrep -o "[^<]+" | wget -q --delete-after -i -


Lasse's picture

This won't work for sites using gzip, at least not to warm a varnish cache.