]> git.mxchange.org Git - friendica.git/commitdiff
Add cache to performance arrays
authorHypolite Petovan <mrpetovan@gmail.com>
Thu, 1 Mar 2018 06:13:50 +0000 (01:13 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 5 Mar 2018 04:13:19 +0000 (23:13 -0500)
src/App.php

index 6eff22f5494378dc5d892b83893f4ac14cb382f5..0acbfe6f4114296a938f90d620a5949e676261ad 100644 (file)
@@ -148,6 +148,8 @@ class App
                $this->performance['start'] = microtime(true);
                $this->performance['database'] = 0;
                $this->performance['database_write'] = 0;
+               $this->performance['cache'] = 0;
+               $this->performance['cache_write'] = 0;
                $this->performance['network'] = 0;
                $this->performance['file'] = 0;
                $this->performance['rendering'] = 0;
@@ -157,6 +159,8 @@ class App
 
                $this->callstack['database'] = [];
                $this->callstack['database_write'] = [];
+               $this->callstack['cache'] = [];
+               $this->callstack['cache_write'] = [];
                $this->callstack['network'] = [];
                $this->callstack['file'] = [];
                $this->callstack['rendering'] = [];