Skip to content
Latchkey

Cache Eviction Policy - CI/CD Glossary Definition

A cache eviction policy decides which CI caches are dropped when a repo exceeds its cache storage quota, using least-recently-used order on GitHub Actions.

A cache eviction policy governs which CI caches are removed when a repository hits its cache storage limit. GitHub Actions evicts the least recently used caches once the repo exceeds its quota (10 GB by default).

Understanding eviction explains why a cache you expected to hit sometimes misses after a quiet period.

Working with the limit

Keep caches scoped and small so useful ones survive. A branch's cache is also unavailable to unrelated branches, which affects hit rate.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →