Skip to content

Instantly share code, notes, and snippets.

@roma-glushko
Forked from rogyar/cache-warmup.sh
Created May 15, 2018 09:08
Show Gist options
  • Save roma-glushko/8d0be6c325690a88df4072aac0a60e96 to your computer and use it in GitHub Desktop.
Save roma-glushko/8d0be6c325690a88df4072aac0a60e96 to your computer and use it in GitHub Desktop.
Cache Warmup
wget -O - dev.mage2.com:1005/sitemap-1-1.xml | grep -E -o '<loc>.*</loc>' | sed -e 's/<loc>//g' -e 's/<\/loc>//g' > ~/sitemaps/mage2.txt
sudo siege -c100 -d5 -r1 -v -i -f ~/sitemaps/mage2.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment