Skip to content

Instantly share code, notes, and snippets.

@GoZOo
Created March 18, 2013 16:41
Show Gist options
  • Save GoZOo/5188639 to your computer and use it in GitHub Desktop.
Save GoZOo/5188639 to your computer and use it in GitHub Desktop.
Re-générer le cache boost via un crontab se basant sur le sitemap xml.
#!/bin/bash
# Drupal cron
wget -O - -o /dev/null http://example.com/cron.php?cron_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Visit every page from your sitemap.xml
wget --quiet http://example.com/sitemap.xml --output-document - | egrep -o "http://example.com/[^<]+" | wget -q --delete-after -i -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment