Update cache length