Pull partner token ledgers into a RAM cache so fleet totals are fleet-wide
This commit is contained in:
+7
-1
@@ -198,7 +198,13 @@
|
||||
VV_CACHE_DIR="/tmp/vv_cache"
|
||||
CONF_RAM_CACHE_DIR="/tmp/.cache/vv/d" # tmpfs — cleared every reboot, repopulated by conf_sync.sh
|
||||
ARR_CACHE_DIR="/tmp/arr_cache" # tmpfs — cleared every reboot, restored from DATA_DIR backup by arr_cache_age_seconds()
|
||||
export CONF_DIR LOG_DIR VV_CACHE_DIR CONF_RAM_CACHE_DIR ARR_CACHE_DIR
|
||||
# Partner AI ledgers pulled by AI/ai_token_sync.sh. A sibling of the conf cache rather than
|
||||
# the same directory: that one holds credentials at chmod 700 and is snapshotted to /boot by
|
||||
# conf_cache_save.sh. These are non-secret counters that are worthless when stale, so they
|
||||
# must not be preserved across a reboot — losing them just means "not collected here" until
|
||||
# the next sync, which is the honest answer anyway.
|
||||
AI_TOKEN_CACHE_DIR="/tmp/.cache/vv/ai" # tmpfs — cleared every reboot, repopulated by ai_token_sync.sh
|
||||
export CONF_DIR LOG_DIR VV_CACHE_DIR CONF_RAM_CACHE_DIR ARR_CACHE_DIR AI_TOKEN_CACHE_DIR
|
||||
|
||||
# ━━━ Cleanup ━━━
|
||||
unset _conf _host_confs_loaded _adapter LOAD_CONFIG_DIR
|
||||
Reference in New Issue
Block a user