mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 18:03:46 +00:00
Rendertime: Ignorelist for page where rendertime doesn't look good.
This commit is contained in:
parent
3f6ed00ded
commit
1ffa5387c5
1 changed files with 4 additions and 1 deletions
|
@ -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.'<div class="renderinfo">'.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),
|
||||
|
|
Loading…
Reference in a new issue