HowTo: Change feed update interval

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

Source : http://www.gasthouse.net/archives/feed-update-frequency-below-60-minutes

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s