Updating feeds with cron

From GregariusWiki

Jump to: navigation, search

Just point your cronjob to open http://yoursite.com/rss/update.php?silent via wget or curl.

For instance, with wget and feed updates every day at 00h30, 8h30 and 16h30 :

30   0,8,16   *   *   *      wget -q -O /dev/null http://yoursite.com/rss/update.php?silent

Alternatively, you can use the command line updater. This avoids issues like webserver timeouts and is useful for updating a large number of feeds in a reliable manner. (Don't forget that there are two sets of dashes in the line below)

0 */2 * * *     cd /path/to/gregarius ; php -f update.php -- --silent


Be nice to your news providers. Only update every couple of hours or so! This job updates every two hours on the hour.

Personal tools