Clear undo cache on startup

Fixes #10