From: Michael Vogel Date: Thu, 15 Sep 2016 09:52:30 +0000 (+0000) Subject: Rendertime: Ignorelist for page where rendertime doesn't look good. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1ffa5387c5dd61dc8352de898b4c8ea0c1f8a591;p=friendica-addons.git Rendertime: Ignorelist for page where rendertime doesn't look good. --- diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index 548775a1..38b50a53 100755 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -26,7 +26,10 @@ function rendertime_page_end(&$a, &$o) { $duration = microtime(true)-$a->performance["start"]; - if (is_site_admin() AND ($_GET["mode"] != "minimal") AND !$a->is_mobile AND !$a->is_tablet) { + $ignored_modules = array("fbrowser"); + $ignored = in_array($a->module, $ignored_modules); + + if (is_site_admin() AND ($_GET["mode"] != "minimal") AND !$a->is_mobile AND !$a->is_tablet AND !$ignored) { $o = $o.'
'.sprintf(t("Database: %s, Network: %s, Rendering: %s, Session: %s, I/O: %s, Other: %s, Total: %s"), round($a->performance["database"], 3), round($a->performance["network"], 3),