Invalidate caches | IntelliJ IDEA
www.jetbrains.com › help › ideaOct 05, 2021 · The caches will not be deleted until you restart IntelliJ IDEA. Opening and closing a project without invalidating the cache does not result in deleting any cached files. Local History is not deleted when you invalidate the cache unless you explicitly enable this option in the Invalidate Caches dialog.