Skip to content

Instantly share code, notes, and snippets.

@cristian0
Last active May 22, 2024 13:33
Show Gist options
  • Save cristian0/700319a50c314f94bead21b3cf0b893e to your computer and use it in GitHub Desktop.
Save cristian0/700319a50c314f94bead21b3cf0b893e to your computer and use it in GitHub Desktop.
Warming cache site by sitemap
curl -sS https://example.com/sitemap.xml | pcregrep -o1 "<loc>([^<]+)</loc>" | xargs -n1 -r -P60 curl -sS -o /dev/null -w "%{http_code}\t%{time_total}\t%{url_effective}\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment