update cache then clear