Put every tmpfs path in one place both layers can read
This commit is contained in:
@@ -79,7 +79,8 @@
|
||||
|
||||
require_once __DIR__ . '/config.php';
|
||||
|
||||
define('VV_AI_JOB_DIR', '/tmp/varaverk_ai_jobs');
|
||||
// VV_AI_JOB_DIR and VV_AI_TOKEN_CACHE_DIR are defined in config.php with every other cache path,
|
||||
// read from master.conf so this layer and load_config.sh cannot disagree about where they are.
|
||||
const VV_AI_KINDS = ['header', 'readme', 'manual', 'template', 'doc'];
|
||||
|
||||
// Profiles — what each one is, and what it is allowed to see and do. One table, in one file,
|
||||
@@ -671,10 +672,9 @@ function vv_ai_token_prune(string $db): void {
|
||||
// Partner ledgers pulled by AI/ai_token_sync.sh into tmpfs. Same trick conf_sync.sh uses for
|
||||
// partner confs: the reader treats a missing file as "unknown", never as zero.
|
||||
//
|
||||
// Mirrors AI_TOKEN_CACHE_DIR in load_config.sh. Hardcoded rather than read from conf because it
|
||||
// is a derived path constant on the shell side too — neither end reads it from a conf file, so
|
||||
// there is no single value to drift away from.
|
||||
const VV_AI_TOKEN_CACHE_DIR = '/tmp/.cache/vv/ai';
|
||||
// The directory is AI_TOKEN_CACHE_DIR from master.conf, resolved in config.php. It used to be
|
||||
// hardcoded here, on the reasoning that the shell side hardcoded it too and so there was no
|
||||
// single value to drift away from — true when it was written, and no longer true.
|
||||
|
||||
// Aggregates the file into today / last 7 days / all time, both overall and per host.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user