From d05e1fdfb3727e5a75254182a73d7ede02ff502d Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 11 Aug 2022 06:16:10 +0000 Subject: [PATCH] enable ignoring stats on admin requests --- app/controllers/shared/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index be77705d9b..6118dd63b6 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -343,7 +343,7 @@ App::shutdown() if ( App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled' && $project->getId() - // && $mode !== APP_MODE_ADMIN // TODO: add check to make sure user is admin + && $mode !== APP_MODE_ADMIN // TODO: add check to make sure user is admin && !empty($route->getLabel('sdk.namespace', null)) ) { // Don't calculate console usage on admin mode