mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
.env _APP_SLOW_QUERIES_MAX_HITS set to 5
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user