The cache update happens but it happens post calculation of alltags and hence we
still don't get correct list of tags in current run.
Next patch will try to fix this.
I'm waiting for the "next patch" mentioned in the commit message before this can be accepted, since the behavior changed from an abort to a silent omission of valid data, which is a regression.
This should probably be gated by the presence of invalidnodes to avoid a useless loop.