Before we had the problem that we tried to always restore the same cache but only save it when a commit reached main, this had the problem that if nothing reached main the cache would expire after 1 week.
Instead always save the cache, this will cause the cache to have some items from branches, but is probably still more beneficial and allows us to avoid evictions.
Before we had the problem that we tried to always restore the same cache but only save it when a commit reached
main
, this had the problem that if nothing reachedmain
the cache would expire after 1 week.Instead always save the cache, this will cause the cache to have some items from branches, but is probably still more beneficial and allows us to avoid evictions.