Update server status cache key and fix URL formatting for Nextcloud
This commit is contained in:
parent
37c2ef88e9
commit
9020a7f7a3
@ -13,7 +13,7 @@ return [
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Nextcloud',
|
'title' => 'Nextcloud',
|
||||||
'url' => 'https://fabianschieder.com/nextcloud',
|
'url' => 'https://fabianschieder.com/nextcloud/',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Home Assistant',
|
'title' => 'Home Assistant',
|
||||||
@ -32,4 +32,3 @@ return [
|
|||||||
'url' => 'https://geizkragen.store',
|
'url' => 'https://geizkragen.store',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@ require_once __DIR__ . '/includes/lib/view_helpers.php';
|
|||||||
|
|
||||||
// ── Serverstatus (mit Cache) ──────────────────────────────────────────────
|
// ── Serverstatus (mit Cache) ──────────────────────────────────────────────
|
||||||
$cacheTtlSeconds = 30;
|
$cacheTtlSeconds = 30;
|
||||||
$cacheKey = 'server_status_v3';
|
$cacheKey = 'server_status_v4';
|
||||||
$cacheFile = rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $cacheKey . '.json';
|
$cacheFile = rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $cacheKey . '.json';
|
||||||
|
|
||||||
$serverStatus = null;
|
$serverStatus = null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user