.env _APP_SLOW_QUERIES_MAX_HITS set to 5

This commit is contained in:
fogelito
2023-03-06 11:40:35 +02:00
parent bd582bd00d
commit 408e611b76
5 changed files with 17 additions and 11 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ App::error()
])));
} else {
$document->setAttribute('count', $document->getAttribute('count') + 1);
$max = intval(App::getEnv('_APP_SLOW_QUERIES_MAX_HITS', 9999));
$max = intval(App::getEnv('_APP_SLOW_QUERIES_MAX_HITS', 5));
if ($document->getAttribute('count') >= $max) {
$document->setAttribute('blocked', true);
}