What are the cache size limits and eviction rules?
BeginnerConceptCaching, Artifacts, Runners & ARC
Answer
Each repository gets 10 GB of cache storage by default (paid plans can raise it). Caches not accessed in 7 days are evicted, and when the repo exceeds its limit, the least recently used caches are evicted until under quota. Thrashing (constant eviction) appears when many branches save large unique caches. Inspect and clean with:
gh cache list --sort size_in_bytes --limit 20
gh cache delete --all --ref refs/pull/42/merge
More on Caching, Artifacts, Runners & ARC
How does `actions/cache` match keys and restore keys?IntermediateWhich caches can a branch restore from?AdvancedWhen should you use setup-* built-in caching instead of `actions/cache`?BeginnerWhy cache the package manager's download cache rather than `node_modules`?AdvancedHow do `actions/cache/restore` and `actions/cache/save` help?AdvancedHow do you cache Docker layers in GitHub Actions?Intermediate