By default, ccache includes the modification time (mtime) and size of the compiler in the hash to ensure that results retrieved from the cache are accurate. But in CI environment compiler's mtime can be unique each run.
Effectively, this PR fixes #27063 (comment):
Looks like ccache isn't working here