check before update cache