Update cache before anything else