Guides
How to keep the base branch cache warm
New feature branches always start with a cold cache.
4 min read
New feature branches always start with a cold cache.
Why it happens
Branch caches inherit from the base branch, so if main's cache is stale every new branch starts cold.
How to fix it
- Run a scheduled workflow on main that populates the cache
- Make sure the scheduled run uses the same cache keys as PR runs
- Check hit rate on first-run-of-branch specifically, not just overall
Your next build could be twice as fast, at half the price
Start free. Migrating away is the same one line, and we publish that diff too.
Related
How to make CI caches actually persistCaches are configured but hit rate is low.How to work around the 10 GB cache limitYour caches exceed 10 GB per repository and start silently evicting.How to share a build cache across repositoriesEach repository maintains its own cache for the same shared dependencies.How to share a Docker cache between jobsEach matrix leg rebuilds the same layers.