From: Andrew Dolgov Date: Sat, 3 Dec 2005 14:25:40 +0000 (+0100) Subject: update_feeds.php for CLI X-Git-Tag: 1.1~10 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1f2b01ed8ee1a7934be8d4ea4e7bfc2980910e3a;p=tt-rss.git update_feeds.php for CLI --- diff --git a/config.php-dist b/config.php-dist index 56a55410..00b47bfc 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 6b606057..ba80bab9 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 00000000..38940896 --- /dev/null +++ b/update_feeds.php @@ -0,0 +1,38 @@ +#!/usr/bin/php4 + +