mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 12:25:56 +00:00
globalUpdateFeeds: disable debugging info
This commit is contained in:
@@ -304,7 +304,7 @@ class Public_Handler extends Handler {
|
|||||||
function globalUpdateFeeds() {
|
function globalUpdateFeeds() {
|
||||||
include "rssfuncs.php";
|
include "rssfuncs.php";
|
||||||
// Update all feeds needing a update.
|
// Update all feeds needing a update.
|
||||||
update_daemon_common($this->link, 0, true, true);
|
update_daemon_common($this->link, 0, true, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -2633,14 +2633,14 @@
|
|||||||
* @param integer $limit The maximum number of articles by digest.
|
* @param integer $limit The maximum number of articles by digest.
|
||||||
* @return boolean Return false if digests are not enabled.
|
* @return boolean Return false if digests are not enabled.
|
||||||
*/
|
*/
|
||||||
function send_headlines_digests($link, $limit = 100) {
|
function send_headlines_digests($link, $limit = 100, $debug = true) {
|
||||||
|
|
||||||
require_once 'lib/phpmailer/class.phpmailer.php';
|
require_once 'lib/phpmailer/class.phpmailer.php';
|
||||||
|
|
||||||
$user_limit = 15; // amount of users to process (e.g. emails to send out)
|
$user_limit = 15; // amount of users to process (e.g. emails to send out)
|
||||||
$days = 1;
|
$days = 1;
|
||||||
|
|
||||||
print "Sending digests, batch of max $user_limit users, days = $days, headline limit = $limit\n\n";
|
if ($debug) _debug("Sending digests, batch of max $user_limit users, days = $days, headline limit = $limit");
|
||||||
|
|
||||||
if (DB_TYPE == "pgsql") {
|
if (DB_TYPE == "pgsql") {
|
||||||
$interval_query = "last_digest_sent < NOW() - INTERVAL '$days days'";
|
$interval_query = "last_digest_sent < NOW() - INTERVAL '$days days'";
|
||||||
@@ -2709,7 +2709,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print "All done.\n";
|
if ($debug) _debug("All done.");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -147,7 +147,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Send feed digests by email if needed.
|
// Send feed digests by email if needed.
|
||||||
send_headlines_digests($link);
|
send_headlines_digests($link, 100, $debug);
|
||||||
|
|
||||||
} // function update_daemon_common
|
} // function update_daemon_common
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user