diagnose.php Configuration
The webCOMAND Diagnose configuration file is located at:
packages/io_comand_database/config/database.php
It contains the following configuration options.
- deleted_days - The min number of days to keep _Deleted content around for; when run, the diagnose cleanup tasks will use this value to sweep up deleted content that is at least this old. Use NULL to keep _Deleted content indefinitely.
- slow_query_threshold - The slow query threshold, in seconds. Any query exceeding this threshold from the diagnose process will generate a warning in the event log. Use NULL or FALSE to suppress slow query warnings altogether. Slow queries from diagnose can indicate the process will lock up the server, so it is best to stay on top of these.
<?php
/**
* Configuration options for the diagnose process.
*/
$config = [
/**
* The min number of days to keep _Deleted content around for; when
* run, the diagnose cleanup tasks will use this value to sweep up
* deleted content that is at least this old. Use NULL to keep
* _Deleted content indefinitely.
*/
'deleted_days' => 30,
/**
* The slow query threshold, in seconds. Any query exceeding this
* threshold from the diagnose process will generate a warning in
* the event log. Use NULL or FALSE to suppress slow query warnings
* altogether.
*
* Slow queries from diagnose can indicate the process will lock up
* the server, so it is best to stay on top of these.
*/
'slow_query_threshold' => 5
];
webCOMAND config.php
Custom overrides can be configured in webcomand/config.php as:
<?php
$config = [
'io_comand_database' => [
'diagnose' => [
'deleted_days'=> 90,
'slow_query_threshold' => 20
]
]
];