diff --git a/config.php-dist b/config.php-dist
index 8601f5628..9060ccaaf 100644
--- a/config.php-dist
+++ b/config.php-dist
@@ -34,30 +34,6 @@
define('SINGLE_USER_MODE', true);
// Operate in single user mode, disables all functionality related to
// multiple users.
-
- 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. This is useful when you
- // are hosting multi-user system and want to control how often
- // feeds are being updated.
-
- // 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
- // and tt-rss path as necessary.
- //
- // */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. Don't forget to chdir() into TT-RSS
- // directory or it won't be able to find includes. E.g.
- //
- // */30 * * * * cd $TTRSS_DIRECTORY && ./update_feeds.php >/dev/null 2>&1
-
- // Another alternative approach is to run update_daemon.php in the background
- // on the server, which allows user-scheduled updates and continous
- // feed updating in the background. This is the recommended way at the moment.
define('SMART_RPC_COUNTERS', false);
// If enabled, stores feed counter information on the server side and sends
diff --git a/functions.php b/functions.php
index 116082988..430525754 100644
--- a/functions.php
+++ b/functions.php
@@ -424,7 +424,7 @@
function update_rss_feed($link, $feed_url, $feed, $ignore_daemon = false) {
- if (DAEMON_REFRESH_ONLY && !$_GET["daemon"] && !$ignore_daemon) {
+ if (!$_GET["daemon"] && !$ignore_daemon) {
return;
}
@@ -2657,7 +2657,7 @@
print "";
print "";
- print "";
+ print "";
print "";
diff --git a/sanity_check.php b/sanity_check.php
index 94bf91b28..a4f5c05c4 100644
--- a/sanity_check.php
+++ b/sanity_check.php
@@ -74,6 +74,11 @@
$err_msg = __("config: option COUNTERS_MAX_AGE expected, but not defined");
}
+ if (defined('DAEMON_REFRESH_ONLY') && DAEMON_REFRESH_ONLY != true) {
+ $err_msg = __("config: option DAEMON_REFRESH_ONLY is obsolete. Please remove this option and read about other ways to update feeds on the wiki.");
+
+ }
+
if ($err_msg) {
print "".__("Fatal Error").": $err_msg\n";
exit;
diff --git a/tt-rss.php b/tt-rss.php
index ac75c1f90..4575b0983 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -139,9 +139,6 @@ window.onload = init;
-
-
-