Dependency cache

Keep dependencies and build outputs between runs, without changing your workflows.

#What it does

CI Router's cache speaks GitHub's Actions cache protocol. actions/cache and the caching built into setup actions such as actions/setup-node work unchanged. The cache is on by default. It has no price.

A cache failure never stops, fails or delays a job. When the cache cannot answer, the job runs without it.

#Where jobs use it

A job uses CI Router's cache where it was measured faster than GitHub's cache on the same machines, for both restores and saves. Everywhere else, the job uses GitHub's cache as usual. The Cache page lists where your jobs use CI Router's cache.

#Who reads which entries

Entries are kept per team and per repository. Which entries a job may read and write depends on what it runs for, as on GitHub:

Cache scope
The job runs forIt writes to, and reads from
A branchWrites to that branch. Reads that branch, then the default branch.
A pull request, from the same repository or a forkWrites to the pull request. Reads the pull request, its base branch, then the default branch. A job that matches no single open pull request only reads the default branch.
A tag, a release, a merge group or workflow_runOnly reads, from the default branch.

On the default branch, push, schedule and manual runs write. Other events there, such as pull_request_target, only read.

A finished entry never changes, and no job can list entries. With branch protection on, the default, a job never reads a sibling branch's entries. Turning it off lets a trusted job on another branch also read what trusted jobs on the repository's other branches saved. Pull requests from forks and Dependabot runs never get that wider read, and their entries are never in it.

#Storage and expiry

A team stores up to 100 GB. An entry expires 7 days after it was last used. Over the allowance, the entries used least recently are removed first. Entry, key and rate limits are on the Limits page.

#The Cache page and settings

The Cache page shows where your jobs use the cache, the storage used against your allowance, the size and last use per repository, and a daily history. Its Recent jobs panel shows which jobs ran read-only or without CI Router's cache, and why.

An owner turns the cache off with Use dependency caching in Settings, on the Cache tab. Turning it off keeps stored entries. They expire after 7 days. Branch protection and the list of repositories that may use the cache are set through the API.

For jobs that rebuild large state on every run, such as Docker layers or a full git history, Volumes add a saved disk beside the cache.

Dependency cache | CI Router docs