Fix cache related problems (between users and with restores).