Skip to content
Nx Cloud CI is in private beta 10.6× faster average CI time with 79% less compute. Join the beta
Back to Knowledge Base

Ultracache and Nx versions

Ultracache requires Nx 24.0.0 or later and records task runs on Nx Cloud Workers only. Once Ultracache is on for your workspace in Nx Cloud, Nx 24 and later use it in CI by default. Runs outside CI always hash tasks from the inputs declared in your project configuration.

Earlier Nx versions don't support Ultracache. To use it, update your workspace to Nx 24.0.0 or later.

Nx hashes every file a recording read, including files that .gitignore or .nxignore exclude. A task's hash then changes when one of those files appears or disappears, as build outputs do.

To leave those files out, set ultracache.includeUnstableFiles to false on the target. That option requires Nx 24.1.0 or later. Nx 24.0 fails with an error when a target sets it.

Set NX_CLOUD_ULTRACACHE_MODE in a CI pipeline to override the workspace setting for that pipeline only. Set it to on to try Ultracache on one branch before you turn it on for the workspace, or to off to skip it for one pipeline. For every value and where to set it, see try Ultracache on one branch or workflow.

To turn Ultracache off for a single target instead, set ultracache.mode to off.

Nx makes one attempt to read the recordings from Nx Cloud. If the read fails, the run continues and Nx hashes every task in that run from its declared inputs.

Last updated: