diff -u tt-rss-20051027/config.php-dist tt-rss-mod4/config.php-dist --- tt-rss-20051027/config.php-dist 2005-10-26 01:29:52.000000000 -0400 +++ tt-rss-mod4/config.php-dist 2005-10-27 19:47:07.969269928 -0400 @@ -33,6 +33,17 @@ define(DEFAULT_UPDATE_INTERVAL, 30); // default interval between feed updates, minutes + define(DAEMON_REFRESH_ONLY, false); + // updates to all feeds will only run when the backend script is + // invoked with a "daemon" option on the URI stem. An example wget + // command line below will invoke an update every 30 minutes, with + // output being sent to /dev/null and the timeout set to 10 minutes + // so that wget does not time out. Substitute your site name, tt-rss + // path, and username/password as necessary. + // + // */30 * * * * /usr/bin/wget -O /dev/null -T 600 "http://username:password@www.your-site.xxx/tt-rss/backend.php?op=rpc&subop=updateAllFeeds&daemon=1" + // + define(DISPLAY_HEADER, true); // enable/disable the display of the header graphic diff -u tt-rss-20051027/functions.php tt-rss-mod4/functions.php --- tt-rss-20051027/functions.php 2005-10-26 01:29:36.000000000 -0400 +++ tt-rss-mod4/functions.php 2005-10-27 19:28:09.000000000 -0400 @@ -22,6 +22,10 @@ if (WEB_DEMO_MODE) return; + if (! ($_GET["daemon"] && DAEMON_REFRESH_ONLY)) { + return; + } + db_query($link, "BEGIN"); $result = db_query($link, "SELECT feed_url,id,