One of the steps in our tests is to make some plots, which we check manually. The plots take several hours to make, and there's no need to make them on every build - only when certain files change. We've accomplished this by saving a cache based on the checksum of those files, and if the cache exists we just print out a link to the existing plots instead of making new ones.
Based on the documentation, caches live for up to 30 days from when they're created. Could this be modified to 30 days from the last time the cache was read? Or, alternatively, 30 days from the last time a job attempted to write to the cache, even if the write failed because the cache already exists?
This maintains the benefit of removing caches that are not used anymore, but would prevent wasting several hours every month on making plots that are identical to ones we already have.
I've seen that some people want to clear the cache more regularly, but there are other ways to accomplish this, and in any case a hardcoded lifetime of 30 days is not that helpful for those use cases.
CCI-I-915