Add file-based API cache — monitor and arrs pages now serve from /tmp/vv_cache instead of making live HTTP calls on every page load

This commit is contained in:
Gmer4Lfe
2026-06-03 16:15:35 -04:00
parent 9655a30d25
commit 65075ed599
5 changed files with 107 additions and 0 deletions
+6
View File
@@ -1,4 +1,10 @@
<?php
header('Content-Type: application/json');
require_once dirname(__DIR__) . '/include/config.php';
$_vv_cached = vv_cache_read('arrs', 90);
if ($_vv_cached !== null) { echo json_encode($_vv_cached); exit; }
unset($_vv_cached);
require_once dirname(__DIR__) . '/include/arrs.php';
echo json_encode(vv_arrs_all());