new option: DAEMON_SENDS_DIGESTS
This commit is contained in:
parent
481c9804aa
commit
99018440a5
|
@ -140,6 +140,10 @@
|
||||||
define('DIGEST_EMAIL_LIMIT', 10);
|
define('DIGEST_EMAIL_LIMIT', 10);
|
||||||
// The maximum amount of emails sent in one digest batch
|
// 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);
|
define('CONFIG_VERSION', 5);
|
||||||
// Expected config version. Please update this option in config.php
|
// Expected config version. Please update this option in config.php
|
||||||
// if necessary (after migrating all new options from this file).
|
// if necessary (after migrating all new options from this file).
|
||||||
|
|
|
@ -148,7 +148,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
send_headlines_digests($link);
|
if (DAEMON_SENDS_DIGESTS) send_headlines_digests($link);
|
||||||
|
|
||||||
print "Sleeping for " . DAEMON_SLEEP_INTERVAL . " seconds...\n";
|
print "Sleeping for " . DAEMON_SLEEP_INTERVAL . " seconds...\n";
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
update_all_feeds($link, false, $user_id, true);
|
update_all_feeds($link, false, $user_id, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
send_headlines_digests($link);
|
if (DAEMON_SENDS_DIGESTS) send_headlines_digests($link);
|
||||||
|
|
||||||
db_close($link);
|
db_close($link);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue