From 99018440a5cdd9b1a5de231b20423942ea52a57d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 21 Aug 2006 08:34:49 +0100 Subject: [PATCH] new option: DAEMON_SENDS_DIGESTS --- config.php-dist | 4 ++++ update_daemon.php | 2 +- update_feeds.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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); -- 2.39.5