CI caching anti-pattern: cache on main, restore on PRs to avoid blowing 10-25GB limits

DanielLockyer · x · 2026-11-04

Daniel Lockyer flags a common CI mistake: writing cache on every build of every PR blows through default 10-25GB cache limits, triggering LRU eviction so most workflows end up running with no caching at all. His fix: store cache only on pushes to main, and only restore it on PRs.

Related event: Developer Warns Common CI Cache Antipattern Blows Storage Limits(2 posts)→

Original post →

More from coding & agent

coding & agent channel →