diff options
-rw-r--r-- | config.php-dist | 4 | ||||
-rw-r--r-- | update_daemon.php | 2 | ||||
-rw-r--r-- | update_feeds.php | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/config.php-dist b/config.php-dist index 9f2f23854..7b800b46f 100644 --- a/config.php-dist +++ b/config.php-dist @@ -140,6 +140,10 @@ define('DIGEST_EMAIL_LIMIT', 10); // The maximum amount of emails sent in one digest batch + define('DAEMON_SENDS_DIGESTS', true); + // If update daemon and update_feeds should send digests + // Disable if you prefer querying special URL (see wiki) + define('CONFIG_VERSION', 5); // Expected config version. Please update this option in config.php // if necessary (after migrating all new options from this file). diff --git a/update_daemon.php b/update_daemon.php index b15d43966..aae1c1ed6 100644 --- a/update_daemon.php +++ b/update_daemon.php @@ -148,7 +148,7 @@ } } - send_headlines_digests($link); + if (DAEMON_SENDS_DIGESTS) send_headlines_digests($link); print "Sleeping for " . DAEMON_SLEEP_INTERVAL . " seconds...\n"; diff --git a/update_feeds.php b/update_feeds.php index 279f4e1df..73422df0c 100644 --- a/update_feeds.php +++ b/update_feeds.php @@ -34,7 +34,7 @@ update_all_feeds($link, false, $user_id, true); } - send_headlines_digests($link); + if (DAEMON_SENDS_DIGESTS) send_headlines_digests($link); db_close($link); |