From: Andrew Dolgov Date: Mon, 21 Aug 2006 07:34:49 +0000 (+0100) Subject: new option: DAEMON_SENDS_DIGESTS X-Git-Tag: 1.2.3~41 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=99018440a5cdd9b1a5de231b20423942ea52a57d;p=tt-rss.git new option: DAEMON_SENDS_DIGESTS --- diff --git a/config.php-dist b/config.php-dist index 9f2f2385..7b800b46 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 b15d4396..aae1c1ed 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 279f4e1d..73422df0 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);