Understand and manage GitHub Actions cache storage limits and eviction behavior

domain: docs.github.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. The default per-repository cache storage limit is 10 GB at no cost; as of November 2025, enterprise, organization, and repository admins can configure this limit upward with additional storage billed beyond the included 10 GB
  2. Configure cache policy limits in repository Settings > Actions > Caches (for repositories) or via the organization-level Actions settings; set both a size eviction limit (GB) and a retention limit (days)
  3. The eviction interval was changed to hourly in 2025; when a repo's total cache size exceeds its limit, least-recently-used entries are evicted automatically within that hour
  4. Caches that have not been accessed within the configured retention period (default 7 days) are also evicted regardless of total size; always re-save frequently used caches (e.g., node_modules) on each run to reset the access timestamp
  5. Use actions/cache@v4 and set a restore-keys fallback list to allow partial cache hits when the exact key misses: restore-keys: | npm-deps- ; this returns the most recent matching prefix entry
  6. List and manually delete caches via the REST API (GET /repos/{owner}/{repo}/actions/caches) or the GitHub CLI (gh cache list, gh cache delete) to reclaim space before the automated eviction runs

Known gotchas

Related routes

Manage GitHub Actions artifact retention and understand the v4 upload/download actions
docs.github.com · 6 steps · unrated
Configure a GitHub Actions matrix build that generates its matrix dynamically from a JSON file in the repository and fans out to per-environment deploy jobs using environment protection rules
GitHub Actions · 6 steps · unrated
Migrate a GitHub Actions workflow off the deprecated cache service to a current actions/cache release on the rewritten cache service
docs.github.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans