X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=2242ba476d85f06e811eb872b4f435f5c2625ec0;hb=f4a65cf6ca3d4ea69ac5e9d3a11c75f484b0dda1;hp=049dc911054ab294bafbaa0c3bb4cbd6d6fbd1c9;hpb=471963a14258de347390ccc84e5fb54dbdb3afaf;p=friendica.git diff --git a/boot.php b/boot.php index 049dc91105..2242ba476d 100644 --- a/boot.php +++ b/boot.php @@ -553,9 +553,7 @@ class App { $this->performance["rendering"] = 0; $this->performance["parser"] = 0; $this->performance["marktime"] = 0; - - $this->performance["file"] = 0; - $this->performance["file"] = 0; + $this->performance["markstart"] = microtime(true); $this->callstack["database"] = array(); $this->callstack["network"] = array(); @@ -912,6 +910,10 @@ class App { } function get_cached_avatar_image($avatar_image){ + return $avatar_image; + + // The following code is deactivated. It doesn't seem to make any sense and it slows down the system. + /* if($this->cached_profile_image[$avatar_image]) return $this->cached_profile_image[$avatar_image]; @@ -931,6 +933,7 @@ class App { } } return $this->cached_profile_image[$avatar_image]; + */ } @@ -1037,9 +1040,6 @@ class App { $function = implode(", ", $function); - //$last = array_pop($trace); - //$function = $last["function"]; - $this->callstack[$value][$function] += (float)$duration; }