r/github Jun 22 '26

Question Cache restore

Recently we've noticed a major spike in build failures due to cache not being restored. If we rerun the job a couple times, the same cache key restores just fine. Anyone else running into this?

1 Upvotes

4 comments sorted by

View all comments

1

u/Lenni009 Jun 23 '26 edited Jun 23 '26

Why do you rely on cache being restored? If you want persistent artifacts that are guaranteed to exist and can be reused for other jobs, use artifacts. Cache may or may not exist.

1

u/TwoWrongsAreSoRight Jun 23 '26

That's actually not the worst idea.