Disable request_slowlog_timeout on specific script

Viewed 14

Does somebody have a solution to disable request_slowlog_timeout in specific scripts like cron jobs that should be heavy?

I actually run PHP 7.2 as fpm and I have 30s default parameter to avoid cronjobs to spam slow logs. I want to monitor my website performance then I would like to put 5s timeout without logging specific scripts.

I tried ini_set("request_slowlog_timeout", 0) and ini_set("log_errors", 0) but both don't work.

This parameter is in the fpm configuration and that's certainly the reason why I can't touch it with ini_set.

So, how to filter unwanted scripts?

0 Answers
Related