]> git.wh0rd.org - tt-rss.git/commitdiff
new option: DAEMON_SENDS_DIGESTS
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 21 Aug 2006 07:34:49 +0000 (08:34 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 21 Aug 2006 07:34:49 +0000 (08:34 +0100)
config.php-dist
update_daemon.php
update_feeds.php

index 9f2f23854fbcfe32ab54a6c199220d985f3c1f04..7b800b46fb743f63971f00c1f5527506a4d6a25b 100644 (file)
        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).
index b15d43966994e9e4c89418f1a2a301bf699d7704..aae1c1ed6a6b2754e50072020e0663b59dfe7077 100644 (file)
                        }
                }
 
-               send_headlines_digests($link);
+               if (DAEMON_SENDS_DIGESTS) send_headlines_digests($link);
 
                print "Sleeping for " . DAEMON_SLEEP_INTERVAL . " seconds...\n";
                
index 279f4e1df35e7b2f5ebcbc0451fefa706df7a5d8..73422df0ce52fbf2e26ee9a8665bb54c7f8d55d0 100644 (file)
@@ -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);