fix: keep cache writes outside restoration recovery
3 files changed