diff --git a/config.php-dist b/config.php-dist index 56a554106..00b47bfcc 100644 --- a/config.php-dist +++ b/config.php-dist @@ -39,6 +39,9 @@ // */30 * * * * /usr/bin/wget -O /dev/null -T 600 "http://www.your-site.xxx/tt-rss/backend.php?op=globalUpdateFeeds&daemon=1" // + // The alternative approach is to run update_feeds.php from your crontab + // with command line PHP interpreter. + define('SMART_RPC_COUNTERS', true); // If enabled, stores feed counter information on the server side and sends // only diffs to the client. In the nutshell, it saves your bandwidth and diff --git a/functions.php b/functions.php index 6b6060573..ba80bab94 100644 --- a/functions.php +++ b/functions.php @@ -1,5 +1,4 @@ ($upd_intl * 60))) { - update_rss_feed($link, $line["feed_url"], $line["id"]); + update_rss_feed($link, $line["feed_url"], $line["id"], $force_daemon); } } diff --git a/update_feeds.php b/update_feeds.php new file mode 100644 index 000000000..38940896f --- /dev/null +++ b/update_feeds.php @@ -0,0 +1,38 @@ +#!/usr/bin/php4 + +