I have projects on a removable drive which I move between my work machine and my home machine. This morning on startup Intellij showed the files with their content as it was two days ago (i.e. when last used on this machine) and not as actually present on the disk. After using File|Invalidate caches the true content was shown and the workspace state reflected my last use on the other machine.
Is there any way to prevent this behaviour?