Update cache before update