Document today's restructures, and give data/ a README that ships with it

This commit is contained in:
Gmer4Lfe
2026-08-09 00:01:05 -04:00
parent 38cd3edf99
commit 3a45c18555
12 changed files with 243 additions and 29 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ containers, VMs, transcodes, arr library counts. Building that live on every pag
dozens of API calls and `docker inspect` runs per refresh, from a WebGUI that is already the
first thing to slow down under load.
Instead, both are written to `/tmp/vv_cache` (tmpfs — RAM-speed reads, cleared on reboot) and
Instead, both are written to `$VV_CACHE_DIR` (`/tmp/varaverk/api`, tmpfs — RAM-speed reads, cleared on reboot) and
the pages serve from there.
### ⚡ `api_cache_writer.sh` — local payloads, every minute
@@ -128,7 +128,7 @@ that prevents shadow directories.
Tools/api_cache_writer.php ─────┘ same builders → cache can't disagree with live
└─► /tmp/vv_cache/monitor.json ──► served by api/monitor.php unless ?live=1
└─► /tmp/varaverk/api/monitor.json ──► served by api/monitor.php unless ?live=1
```
Adding a metric means adding it in `include/` once. The page, the live endpoint, and the cache