Home > HowTo's > HowTo: Change feed update interval

HowTo: Change feed update interval

September 7th, 2009 Leave a comment Go to comments



By default your Gregarius feeds are updated every 60 minutes and there is no way to change this value in the configuraton tab of Gregarius. If you want to keep your feeds more up to date, here is a example to change the feed update interval from 60 minutes to 15 minutes:

1. Backup rss_dbcache.inc located in [gregarius root]\extlib\ directory.
2. Change the following red marked values to the green values of rss_dbcache.inc
or download the modified rss_dbcache.inc

LINE 19:

var $MAX_AGE    = 60; // when are files stale (in minutes), default one hour
var $MAX_AGE    = 15; // when are files stale (in minutes), default one hour

LINE 113:

$dateRefreshed = time() - (60 * 60); // If the refresh interval isn't defined, set it to be 60 mins old.
$dateRefreshed = time() - (15 * 60); // If the refresh interval isn't defined, set it to be 60 mins old.

LINE 123:

$refreshInterval = 60; //$this->MAX_AGE;
$refreshInterval = 15; //$this->MAX_AGE;

3. Save and overwrite rss_dbcache.inc
4. done… now your feeds are beeing updated every 15 minutes by pressing the refresh button on the top of your Gregarius feed site.


Optional:

If you want your feeds beeing updated automatically in the background, you can use the “silent” update mechanism. You can find an explanation here: Gregarius Wiki


Categories: HowTo's
  1. Johnk308
    August 9th, 2014 at 10:36 | #1

    Helpful info. Fortunate me I found your website by chance, and I’m shocked why this twist of fate did not took place earlier! I bookmarked it. gbbbeckbbbbb

  1. No trackbacks yet.