That has nothing to do with configuration cache.
I've sometimes seen the up-to-date state being corrupted and tasks not being rerun even though their inputs changed.
I did not yet have a chance to investigate such an incident more deeply, but it was usually resolved by deleting