pub fn invalidate_cache(target_root: &Path)
Invalidate the in-memory cache for a target (e.g., on target reconnect).