Created
March 18, 2013 16:41
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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