From 2502bc3f0ec6d5766b3b9aff67f888b1e19544b9 Mon Sep 17 00:00:00 2001 From: zebardy Date: Fri, 22 Nov 2019 10:46:14 +0000 Subject: [PATCH] fix more in depth timings for routing loading --- routes.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes.php b/routes.php index d72fe28a..7c2d7c29 100644 --- a/routes.php +++ b/routes.php @@ -36,7 +36,8 @@ $app->group('', function() // User routes $this->get('/users', '\Grocy\Controllers\UsersController:UsersList'); $this->get('/user/{userId}', '\Grocy\Controllers\UsersController:UserEditForm'); - fwrite($fp, "*** routing - main route add base routes load time : " . round((microtime(true) - $main_route_time_start),6) . "\n"); + + fwrite($fp, "*** routing - main route add base routes load time : " . round((microtime(true) - $time_start),6) . "\n"); $stock_time_start = microtime(true); // Stock routes @@ -144,7 +145,7 @@ $app->group('', function() $this->get('/manageapikeys', '\Grocy\Controllers\OpenApiController:ApiKeysList'); $this->get('/manageapikeys/new', '\Grocy\Controllers\OpenApiController:CreateNewApiKey'); fwrite($fp, "*** routing - main route add open api routes load time : " . round((microtime(true) - $openapi_time_start),6) . "\n"); - fwrite($fp, "*** routing - main route add all routes load time : " . round((microtime(true) - $main_route_time_start),6) . "\n"); + fwrite($fp, "*** routing - main route add all routes load time : " . round((microtime(true) - $time_start),6) . "\n"); fclose($fp); })->add(new SessionAuthMiddleware($appContainer, $appContainer->LoginControllerInstance->GetSessionCookieName()));