Skip to content

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

  1. Run a scheduled workflow on main that populates the cache
  2. Make sure the scheduled run uses the same cache keys as PR runs
  3. 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.