We have started using the new caching feature provided by the latest SonarCFamily plugin with our on-prem SonarQube instance and have been very impressed with the performance benefits it provides, particularly with regards to improving PR analysis times on our larger projects. One question I did have was what will cause a cache to be invalidated i.e. it will no longer be able to be used and a full analysis will again be required? For example, would any of the following invalidate the cache:
- Upgrading SonarQube to new version
- Upgrading the SonarCFamily plugin to new version
- Changing the C++ Quality Profile used by the project
- Changing the Quality Gate used by the project
It would be good to have a clear list, as it would allow us to plan accordingly for actions that would invalidate our caches. That in turn could impact PR analysis on large projects with lengthy analyses where there would no longer be a valid cache for the target branch until it is re-analysed.
Thanks in advance!