X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=include%2Frssfuncs.php;h=8f71f950afbfa79d128f708fe512ca1e81ee0996;hb=73f9378d26e4eb26157f806809a5470cf3b41347;hp=d6e5a54436725e1352bc80f4ffee23efc637af1b;hpb=d5e490952aae542520b6dcaf9a9297f3b8199dfc;p=tt-rss.git diff --git a/include/rssfuncs.php b/include/rssfuncs.php index d6e5a544..8f71f950 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -169,6 +169,7 @@ } $nf = 0; + $bstarted = microtime(true); // For each feed, we call the feed update function. foreach ($feeds_to_update as $feed) { @@ -196,13 +197,22 @@ while ($tline = db_fetch_assoc($tmp_result)) { if($debug) _debug(" => " . $tline["last_updated"] . ", " . $tline["id"] . " " . $tline["owner_uid"]); + $fstarted = microtime(true); $rss = update_rss_feed($tline["id"], true, false); _debug_suppress(false); + + _debug(sprintf(" %.4f (sec)", microtime(true) - $fstarted)); + ++$nf; } } } + if ($nf > 0) { + _debug(sprintf("Processed %d feeds in %.4f (sec), %.4f (sec/feed avg)", $nf, + microtime(true) - $bstarted, (microtime(true) - $bstarted) / $nf)); + } + require_once "digest.php"; // Send feed digests by email if needed. @@ -672,6 +682,7 @@ "link" => $entry_link, "tags" => $entry_tags, "author" => $entry_author, + "language" => $entry_language, "feed" => array("id" => $feed, "fetch_url" => $fetch_url, "site_url" => $site_url)