Local History entries not persisting after IDE cache invalidation
0 reputation · 28 Nov 2020, 09:53 UTC
Users rely on IntelliJ IDEA's Local History to revert file changes without committing to version control, expecting that recent edits remain available after routine IDE operations such as cache invalidation or restart.
However, the exact conditions under which Local History entries are preserved or removed are not clearly documented, leading to uncertainty about whether a cache invalidation will delete the stored history for a project.
The goal is to understand the retention behavior that governs Local History when disk-space thresholds or time-based policies interact with cache-invalidation triggers, and to determine if any configuration can guarantee persistence across such events.
What retention rules apply when the IDE reaches its configured disk-space limit versus its time-based expiry? Does cache invalidation invoke the same pruning logic as automatic cleanup, or does it bypass those limits? Is there a setting that can prevent Local History from being cleared during cache invalidation while still respecting overall disk-usage constraints?