Add statuscache duration option

This commit is contained in:
Dale Davies
2022-07-25 17:07:01 +01:00
parent 7794cc0cf2
commit 9c3cf9ab99
2 changed files with 4 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ class Cache {
'sites/status' => [
'cache' => null,
'expirationtype' => Caching\Cache::EXPIRE,
'expirationparams' => '5 minutes'
'expirationparams' => $config->get('statuscache').' minutes'
],
'tags' => [
'cache' => null,

View File

@@ -58,5 +58,8 @@ return [
// Temperature unit: True = metric / False = imperial.
'metrictemp' => getenv('METRICTEMP') ?: true,
// Ping sites to determine availability (e.g. online, offline, errors).
'checkstatus' => getenv('CHECKSTATUS') ?: true,
// Duration to cache status in minutes.
'statuscache' => getenv('STATUSCACHE') ?: '5'
];