I noticed an issue where our cfamily cache would be invalidated randomly, causing hugely costly build processes in terms of time. I saw on this post that the full checkout source path invalidates the cache if changed.
Is this true? Is there a way to stop this? Our CI system creates a workspace folder, e.g. C:\agent_work\1…, C:\agent_work\2…, etc. This means the cache will constantly get invalidated when using a different agent or different workspace number. For reference, we use Azure DevOps (VSTS), but building on jenkins this would also be an issue.
Looking for any ideas for workarounds here, otherwise I will probably have to pull the PR analysis out, and the caching again.