DAEMON_REFRESH_ONLY patch from the same source
This commit is contained in:
parent
f1b9a8ee78
commit
c70d731e23
|
@ -49,6 +49,17 @@
|
||||||
define(USE_COMPACT_STYLESHEET, false);
|
define(USE_COMPACT_STYLESHEET, false);
|
||||||
// use stylesheet with more compact layout (if combined with two previous
|
// use stylesheet with more compact layout (if combined with two previous
|
||||||
// options may improve UI on small screens)
|
// options may improve UI on small screens)
|
||||||
|
|
||||||
|
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"
|
||||||
|
//
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,10 @@
|
||||||
|
|
||||||
if (WEB_DEMO_MODE) return;
|
if (WEB_DEMO_MODE) return;
|
||||||
|
|
||||||
|
if (! ($_GET["daemon"] && DAEMON_REFRESH_ONLY)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
db_query($link, "BEGIN");
|
db_query($link, "BEGIN");
|
||||||
|
|
||||||
$result = db_query($link, "SELECT feed_url,id,
|
$result = db_query($link, "SELECT feed_url,id,
|
||||||
|
|
Loading…
Reference in New Issue