Skip to main content

CACHE_SCHEMA_VERSION

Constant CACHE_SCHEMA_VERSION 

Source
pub const CACHE_SCHEMA_VERSION: u32 = 2;
Available on crate feature vcs-git only.
Expand description

On-disk format version for the cache. Bump on any change to the HistoryCache / CommitEvent shape — and on any change to what a recorded event means, since an older entry is otherwise replayed under semantics it was not walked with.

Version 2 (#1265): BotFilter became case-insensitive. The fingerprint hashes only the pattern string, so an event log walked under the case-sensitive matcher would otherwise replay with its excluded set intact — the same input answering differently depending on whether the cache was warm. The bump forces one benign cold walk.