Repository navigation
Major latency and server-load improvements based on live profiling across ZUSE, CLU, and TRON:
- Instant initial paint (< 50 ms): Added guarded server-side status snapshot cache (
status-cache.php) populated bytools/poll.phpand served via?cached=1with stale-while-revalidate background refresh, plus instant cached chart paint and timeframe switching (5m/15m/1h/24h) straight frommetrics-history.php. - ~4-8x faster live status refreshes: Moved slow/optional sections (
disksSMART scans,parity_history,flash,plugins,ups) into a 10-minute guarded cache (slow-cache.php), eliminating ~10s SMART scan stalls and wastedForbiddenrequests on 30s refreshes. - Eliminated 8s metrics timeouts and cut sensor load 12x: Read hottest disk/NVMe temps from fast
arrayqueries (~50 ms instead of ~7,900 ms) and cachedmetrics.temperatureCPU temps for 60 seconds (temp-cache.php) with transient-null protection. - Multi-tab deduplication and cache invalidation: Rapid polls within seconds reuse server-side caches, while every mutating action immediately invalidates
status-cache.php. - 130 end-to-end checks passing including cache-guard and instant-paint tests.