Skip to main content

SETTINGS_FILE_CACHE_TTL_MS

Constant SETTINGS_FILE_CACHE_TTL_MS 

Source
const SETTINGS_FILE_CACHE_TTL_MS: u64 = 250;
Expand description

Short TTL cache for parsed settings.json reads. The InspectConfigurationValue handler reads BOTH the user settings.json and the workspace settings.json on every call; log audit 20260501T053137 shows ~57 Inspect calls per session = 114 disk reads of the same one or two files. With this cache, repeated reads within TTL_MS reuse the parsed Value and a burst of Inspects collapses to ~1 disk read per file. TTL is short enough (250ms) that user edits to settings.json show up within a quarter-second.