mirror of
https://github.com/daledavies/jump.git
synced 2026-07-06 12:27:55 +02:00
Add statuscache duration option
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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'
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user