# \#cache

**URL:** https://discuss.circleci.com/tag/cache/82.md

[Latest](https://discuss.circleci.com/latest.md) · [Categories](https://discuss.circleci.com/categories.md) · [Tags](https://discuss.circleci.com/tags.md)

---

## [\[Product Update\] Zstd Compression for Caches](https://discuss.circleci.com/t/product-update-zstd-compression-for-caches/53431)

<div class="topic-metadata">

**Author:** [@DomParfitt](https://discuss.circleci.com/u/DomParfitt)\
**Replies:** 0\
**Last updated:** [June 25, 2025, 9:24am UTC](https://discuss.circleci.com/t/product-update-zstd-compression-for-caches/53431 "2025-06-25T09:24:48Z")

</div>

Starting June 25th we are rolling out a change to use zstd compression rather than gzip for caches. The expectation is that this should provide a performance boost to both the save\_cache and restore\_cache steps, but othe…

---

## [Use the same cache key for jobs running in parallel?](https://discuss.circleci.com/t/use-the-same-cache-key-for-jobs-running-in-parallel/49950)

<div class="topic-metadata">

**Author:** [@ifeins](https://discuss.circleci.com/u/ifeins)\
**Replies:** 4\
**Last updated:** [May 7, 2025, 6:05pm UTC](https://discuss.circleci.com/t/use-the-same-cache-key-for-jobs-running-in-parallel/49950 "2025-05-07T18:05:06Z")

</div>

Hi, I have a project in which I want to run 3 jobs in parallel, but I want to install npm dependencies only once and cache the resulting node\_modules: test-unit - run unit tests test-integration - run integration test…

---

## [How do we create a cache key that refreshes every month?](https://discuss.circleci.com/t/how-do-we-create-a-cache-key-that-refreshes-every-month/53089)

<div class="topic-metadata">

**Author:** [@xv-jiebo-ti](https://discuss.circleci.com/u/xv-jiebo-ti)\
**Replies:** 0\
**Last updated:** [April 10, 2025, 5:58am UTC](https://discuss.circleci.com/t/how-do-we-create-a-cache-key-that-refreshes-every-month/53089 "2025-04-10T05:58:38Z")

</div>

I refer to the documentation about Using keys and templates in topic about Caching. It helpfully lists down some popular caching strategies, however, it doesn’t specify how might we further enhance/manipulate the provid…

---

## [Unarchiving cache occasionally takes over a minute instead of \<5 sec](https://discuss.circleci.com/t/unarchiving-cache-occasionally-takes-over-a-minute-instead-of-5-sec/52635)

<div class="topic-metadata">

**Author:** [@FabriceCastel](https://discuss.circleci.com/u/FabriceCastel)\
**Replies:** 0\
**Last updated:** [January 17, 2025, 7:02pm UTC](https://discuss.circleci.com/t/unarchiving-cache-occasionally-takes-over-a-minute-instead-of-5-sec/52635 "2025-01-17T19:02:32Z")

</div>

We’ve got test runs set up to execute with high parallelism and often, when I look to find the slowest container of the bunch, it turns out it took well over a minute to extract cached files in restore\_cache that would o…

---

## [Restore\_cache job has started failing but always succeeds on re-run](https://discuss.circleci.com/t/restore-cache-job-has-started-failing-but-always-succeeds-on-re-run/52482)

<div class="topic-metadata">

**Author:** [@JoshMK](https://discuss.circleci.com/u/JoshMK)\
**Replies:** 0\
**Last updated:** [December 12, 2024, 7:03pm UTC](https://discuss.circleci.com/t/restore-cache-job-has-started-failing-but-always-succeeds-on-re-run/52482 "2024-12-12T19:03:08Z")

</div>

A few days ago our builds started failing when attempting to restore a cache. The error message is: Found a cache from build \[build number\] at \[cache\] Cached paths: \[file paths\] Downloading cache archive... Validating …

---

## [Is there a way to cache pyenv, goenv, nvm versions effectively?](https://discuss.circleci.com/t/is-there-a-way-to-cache-pyenv-goenv-nvm-versions-effectively/52115)

<div class="topic-metadata">

**Author:** [@carlosjgp](https://discuss.circleci.com/u/carlosjgp)\
**Replies:** 4\
**Last updated:** [November 14, 2024, 12:34pm UTC](https://discuss.circleci.com/t/is-there-a-way-to-cache-pyenv-goenv-nvm-versions-effectively/52115 "2024-11-14T12:34:19Z")

</div>

Caching fails when trying to speed up installing different versions of pyenv, goenv, nvm One of the possible errors are that the Machine executors have these tools preinstalled but the owner is not circleci user but roo…

---

## [Rebuild without cache](https://discuss.circleci.com/t/rebuild-without-cache/35503)

<div class="topic-metadata">

**Author:** [@gullitmiranda](https://discuss.circleci.com/u/gullitmiranda)\
**Replies:** 5\
**Last updated:** [May 23, 2024, 6:20pm UTC](https://discuss.circleci.com/t/rebuild-without-cache/35503 "2024-05-23T18:20:39Z")

</div>

Continuing the discussion from https://discuss.circleci.com/t/why-was-rebuild-without-cache-button-removed-for-workflows/23223/7?u=gullitmiranda the button “rerun without cache” was also removed from the build page.

---

## [I ran out of cache quota and have no idea what to do next](https://discuss.circleci.com/t/i-ran-out-of-cache-quota-and-have-no-idea-what-to-do-next/49750)

<div class="topic-metadata">

**Author:** [@capacytron](https://discuss.circleci.com/u/capacytron)\
**Replies:** 1\
**Last updated:** [November 1, 2023, 11:58pm UTC](https://discuss.circleci.com/t/i-ran-out-of-cache-quota-and-have-no-idea-what-to-do-next/49750 "2023-11-01T23:58:49Z")

</div>

I ran out of cache quota. I’ve decreased TTL for storage from default values to 5 days. Still can’t build anything. What should I do next?

---

## [Cache dependencies in windows](https://discuss.circleci.com/t/cache-dependencies-in-windows/47785)

<div class="topic-metadata">

**Author:** [@ohadd-getvim](https://discuss.circleci.com/u/ohadd-getvim)\
**Replies:** 2\
**Last updated:** [October 20, 2023, 8:21am UTC](https://discuss.circleci.com/t/cache-dependencies-in-windows/47785 "2023-10-20T08:21:02Z")

</div>

I’m trying to shorten my CI time and cache dependencies on a windows executor CI flow. Tried quite a few methods but none seem to work proper. Any reference? (currently mostly using choco to install dependencies) Usin…

---

## [DLC teardown - control over deleting of images when over 15GB](https://discuss.circleci.com/t/dlc-teardown-control-over-deleting-of-images-when-over-15gb/48975)

<div class="topic-metadata">

**Author:** [@dan-man](https://discuss.circleci.com/u/dan-man)\
**Replies:** 4\
**Last updated:** [August 28, 2023, 8:46pm UTC](https://discuss.circleci.com/t/dlc-teardown-control-over-deleting-of-images-when-over-15gb/48975 "2023-08-28T20:46:38Z")

</div>

Context I have a job that produces both two docker images: one is ~1GB that’s used for most of our ELT logic; and a second one that’s ~14.5GB because it also includes machine learning dependencies. Although the final f…

---

## [Caching Custom Orbs and their dependencies](https://discuss.circleci.com/t/caching-custom-orbs-and-their-dependencies/48417)

<div class="topic-metadata">

**Author:** [@clicketyclackety](https://discuss.circleci.com/u/clicketyclackety)\
**Replies:** 1\
**Last updated:** [June 20, 2023, 8:40am UTC](https://discuss.circleci.com/t/caching-custom-orbs-and-their-dependencies/48417 "2023-06-20T08:40:50Z")

</div>

I have created a custom orb. In this orb, it downloads a copy of a software that is ~ 300mb and installs it. The software has 2 major versions and I’d like to be able to matrix the custom orb so that I can test my soft…

---

## [Value of arch Unstable on Windows](https://discuss.circleci.com/t/value-of-arch-unstable-on-windows/40079)

<div class="topic-metadata">

**Author:** [@Kurt-von-Laven](https://discuss.circleci.com/u/Kurt-von-Laven)\
**Replies:** 1\
**Last updated:** [March 3, 2023, 2:19pm UTC](https://discuss.circleci.com/t/value-of-arch-unstable-on-windows/40079 "2023-03-03T14:19:16Z")

</div>

{{ arch }} evaluated to “arch1-windows-amd64-unknown” in one of my jobs using the default executor of the windows@2.4.0 orb during the restore\_cache step. It typically evaluates to “arch1-windows-amd64-1\_” instead, and i…

---

## [Avoid payload on restore\_cache hit](https://discuss.circleci.com/t/avoid-payload-on-restore-cache-hit/46438)

<div class="topic-metadata">

**Author:** [@eangius](https://discuss.circleci.com/u/eangius)\
**Replies:** 0\
**Last updated:** [December 29, 2022, 9:05pm UTC](https://discuss.circleci.com/t/avoid-payload-on-restore-cache-hit/46438 "2022-12-29T21:05:50Z")

</div>

We have the standard caching setup, but seems to us that the payload step always gets fully run despite having successfully been replaced by the restore\_cache step. Whats going on? Do we need to somehow conditionally NOT…

---

## [Updating version of environment dependency in circle.yml](https://discuss.circleci.com/t/updating-version-of-environment-dependency-in-circle-yml/44445)

<div class="topic-metadata">

**Author:** [@oquechy](https://discuss.circleci.com/u/oquechy)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 3:43pm UTC](https://discuss.circleci.com/t/updating-version-of-environment-dependency-in-circle-yml/44445 "2022-07-14T15:43:10Z")

</div>

Building my GitHub project requires Z3 (GitHub - Z3Prover/z3: The Z3 Theorem Prover) in the path. I was using z3 v. 4.8.8 until recently. Now I changed my circle.yml to install z3 v. 4.8.15. However, I can see in the log…

---

## [Docker Layer Caching on Free plan doesn't seem to work](https://discuss.circleci.com/t/docker-layer-caching-on-free-plan-doesnt-seem-to-work/43519)

<div class="topic-metadata">

**Author:** [@Emptyfruit](https://discuss.circleci.com/u/Emptyfruit)\
**Replies:** 6\
**Last updated:** [April 4, 2022, 12:25pm UTC](https://discuss.circleci.com/t/docker-layer-caching-on-free-plan-doesnt-seem-to-work/43519 "2022-04-04T12:25:01Z")

</div>

I’m on a free plan and have enabled DLC for the machine executor (in a private orb). I have a pretty standard nodejs dockerfile, but as i can see, none of the layers are cached. Moreover, i can see the message, that cle…

---

## [Regression: cache restore does not work if dir does not exist](https://discuss.circleci.com/t/regression-cache-restore-does-not-work-if-dir-does-not-exist/43307)

<div class="topic-metadata">

**Author:** [@chfast](https://discuss.circleci.com/u/chfast)\
**Replies:** 0\
**Last updated:** [March 21, 2022, 8:51am UTC](https://discuss.circleci.com/t/regression-cache-restore-does-not-work-if-dir-does-not-exist/43307 "2022-03-21T08:51:40Z")

</div>

This seems to be a regression happened within last 5 days. If a cache contains a file under directory X and this directory does not exist when doing cache restore the restore fails. This workflow was working some time ag…

---

## [Docker\_layer\_caching inconsistencies](https://discuss.circleci.com/t/docker-layer-caching-inconsistencies/43286)

<div class="topic-metadata">

**Author:** [@pedro-prose](https://discuss.circleci.com/u/pedro-prose)\
**Replies:** 0\
**Last updated:** [March 18, 2022, 9:08am UTC](https://discuss.circleci.com/t/docker-layer-caching-inconsistencies/43286 "2022-03-18T09:08:23Z")

</div>

Hi, I use docker\_layer\_caching to cache the Docker image between test runs and jobs but there are many times this caching doesn’t even caches the image between jobs in the same test run. In my setup, the docker image w…

---

## [Error restoring cache after updating Xcode version to 12.0.1](https://discuss.circleci.com/t/error-restoring-cache-after-updating-xcode-version-to-12-0-1/40028)

<div class="topic-metadata">

**Author:** [@taylor.griffin](https://discuss.circleci.com/u/taylor.griffin)\
**Replies:** 1\
**Last updated:** [March 9, 2022, 1:32pm UTC](https://discuss.circleci.com/t/error-restoring-cache-after-updating-xcode-version-to-12-0-1/40028 "2022-03-09T13:32:46Z")

</div>

Hey everyone, I haven’t posted before so sorry if my format is off. I recently updated the Xcode version in my config.yml file to 12.0.1 to comply with apples updated policy. After updating from Xcode 11.4.0 to 12.0.1 m…

---

## [Cache Swift Package Manager Dependencies Add via Xcode](https://discuss.circleci.com/t/cache-swift-package-manager-dependencies-add-via-xcode/36597)

<div class="topic-metadata">

**Author:** [@rcedwards](https://discuss.circleci.com/u/rcedwards)\
**Replies:** 7\
**Last updated:** [February 18, 2022, 9:02pm UTC](https://discuss.circleci.com/t/cache-swift-package-manager-dependencies-add-via-xcode/36597 "2022-02-18T21:02:15Z")

</div>

Are there any suggestions for how to setup a reliable cache for Swift Package Manager dependencies that are managed directly in Xcode? Tracking the lock file ( \[appName\] .xcodeproj/project.workspace/xcshareddata/swift…

---

## [File size mismatch when restoring the cache](https://discuss.circleci.com/t/file-size-mismatch-when-restoring-the-cache/42248)

<div class="topic-metadata">

**Author:** [@kacper](https://discuss.circleci.com/u/kacper)\
**Replies:** 2\
**Last updated:** [February 4, 2022, 3:35pm UTC](https://discuss.circleci.com/t/file-size-mismatch-when-restoring-the-cache/42248 "2022-02-04T15:35:00Z")

</div>

For about a month we’ve been frequently seeing errors similar to these: Found a cache from build 52425 at vf77e906d-b40c-49bd-a534-bc986582e5d9-git-CAS-8069/introduce-rate-limiting-5b8e93990251a03ca393490e3dc7379a94b11f…

---

## [Bundler / Ruby caching dependencies](https://discuss.circleci.com/t/bundler-ruby-caching-dependencies/36898)

<div class="topic-metadata">

**Author:** [@wyardley](https://discuss.circleci.com/u/wyardley)\
**Replies:** 2\
**Last updated:** [January 14, 2022, 5:10pm UTC](https://discuss.circleci.com/t/bundler-ruby-caching-dependencies/36898 "2022-01-14T17:10:59Z")

</div>

Looking at https://circleci.com/docs/2.0/caching/#bundler-ruby and https://discuss.circleci.com/t/partial-cache-restoration-bundler/24783/3 I’m trying to follow the recommendation to run a bundle cache clean --force bef…

---

## [Re-implemented the ability to "Bust Cache" in cirlceci 2.1 workflows](https://discuss.circleci.com/t/re-implemented-the-ability-to-bust-cache-in-cirlceci-2-1-workflows/42472)

<div class="topic-metadata">

**Author:** [@unlikelyzero](https://discuss.circleci.com/u/unlikelyzero)\
**Replies:** 0\
**Last updated:** [January 4, 2022, 11:24pm UTC](https://discuss.circleci.com/t/re-implemented-the-ability-to-bust-cache-in-cirlceci-2-1-workflows/42472 "2022-01-04T23:24:26Z")

</div>

I don’t know where else to put this, but my team had a very specific reason for needing Cache Busting which was removed from CircleCI 2.X. Make a Runtime Parameter openmct/config.yml at 86e5d10fc172e5a3c9627df5371cd6326…

---

## [Sharing xcode derived data folder across jobs / workflows](https://discuss.circleci.com/t/sharing-xcode-derived-data-folder-across-jobs-workflows/31363)

<div class="topic-metadata">

**Author:** [@AnkitGupta](https://discuss.circleci.com/u/AnkitGupta)\
**Replies:** 7\
**Last updated:** [December 14, 2021, 2:16pm UTC](https://discuss.circleci.com/t/sharing-xcode-derived-data-folder-across-jobs-workflows/31363 "2021-12-14T14:16:03Z")

</div>

If we build multiple times the same code on our local system, it takes very less time as xcode caches the ouput from previous build command. It could be a good optimization for circle ci cache if it can provide additiona…

---

## [Skipping cache - error checking storage: RequestError: send request failed](https://discuss.circleci.com/t/skipping-cache-error-checking-storage-requesterror-send-request-failed/23356)

<div class="topic-metadata">

**Author:** [@Abrasha](https://discuss.circleci.com/u/Abrasha)\
**Replies:** 1\
**Last updated:** [November 5, 2021, 1:02pm UTC](https://discuss.circleci.com/t/skipping-cache-error-checking-storage-requesterror-send-request-failed/23356 "2021-11-05T13:02:05Z")

</div>

I got the following error during cache restore: Skipping cache - error checking storage: RequestError: send request failed caused by: Get https://circle-production-customer-artifacts.s3.amazonaws.com/?list-type=2&prefix…

---

## [Caching additional repositories that are used to build the project](https://discuss.circleci.com/t/caching-additional-repositories-that-are-used-to-build-the-project/41448)

<div class="topic-metadata">

**Author:** [@ababilia](https://discuss.circleci.com/u/ababilia)\
**Replies:** 0\
**Last updated:** [October 6, 2021, 10:21am UTC](https://discuss.circleci.com/t/caching-additional-repositories-that-are-used-to-build-the-project/41448 "2021-10-06T10:21:32Z")

</div>

Hello everyone, we have this config.yml In place of private, links to repositories version: 2.1 orbs: node: circleci/node@4.2.0 # Reusable commands commands: checkout-project-repos: parameters: branch: …

---

## [Restore\_cache and save\_cache Should Warn On Large Cache Sizes](https://discuss.circleci.com/t/restore-cache-and-save-cache-should-warn-on-large-cache-sizes/40080)

<div class="topic-metadata">

**Author:** [@Kurt-von-Laven](https://discuss.circleci.com/u/Kurt-von-Laven)\
**Replies:** 1\
**Last updated:** [May 17, 2021, 1:17pm UTC](https://discuss.circleci.com/t/restore-cache-and-save-cache-should-warn-on-large-cache-sizes/40080 "2021-05-17T13:17:52Z")

</div>

In light of the fact that no corruption checking occurs on cache sizes of at least 500 MB, it would be ideal for restore\_cache to warn when restoring a cache of at least 500 MB and save\_cache to warn when saving a cache …

---

## [Is It Safe To Use Partial Cache Restoration With NuGet?](https://discuss.circleci.com/t/is-it-safe-to-use-partial-cache-restoration-with-nuget/40078)

<div class="topic-metadata">

**Author:** [@Kurt-von-Laven](https://discuss.circleci.com/u/Kurt-von-Laven)\
**Replies:** 0\
**Last updated:** [May 16, 2021, 3:04am UTC](https://discuss.circleci.com/t/is-it-safe-to-use-partial-cache-restoration-with-nuget/40078 "2021-05-16T03:04:04Z")

</div>

See Caching Dependencies - CircleCI for further details. NuGet is the standard package manager for .NET (C#, F#, and Visual Basic).

---

## [Circle CI build failing only on PR builds](https://discuss.circleci.com/t/circle-ci-build-failing-only-on-pr-builds/39615)

<div class="topic-metadata">

**Author:** [@zaro0508](https://discuss.circleci.com/u/zaro0508)\
**Replies:** 1\
**Last updated:** [April 8, 2021, 8:35pm UTC](https://discuss.circleci.com/t/circle-ci-build-failing-only-on-pr-builds/39615 "2021-04-08T20:35:26Z")

</div>

I’m getting an “Error loading shared library libffi.so.6” only on builds triggered by PRs. I do not see this error when I pushed the exact same change to a branch and circle CI run a build on a branch. build from PR: h…

---

## [Attach a cache or volume to an orb for the circleci/aws-ecr](https://discuss.circleci.com/t/attach-a-cache-or-volume-to-an-orb-for-the-circleci-aws-ecr/30106)

<div class="topic-metadata">

**Author:** [@aml91](https://discuss.circleci.com/u/aml91)\
**Replies:** 3\
**Last updated:** [March 12, 2021, 3:44pm UTC](https://discuss.circleci.com/t/attach-a-cache-or-volume-to-an-orb-for-the-circleci-aws-ecr/30106 "2021-03-12T15:44:20Z")

</div>

I have a Docker build image that does a COPY . . and it assumes there is a .netrc file for fetching a private repository via go dep. The .netrc file is not something I commit and instead I generate the file during the CI…

---

## [Using docker buildkit "RUN --mount=type=cache" and saving cache across runs](https://discuss.circleci.com/t/using-docker-buildkit-run-mount-type-cache-and-saving-cache-across-runs/37007)

<div class="topic-metadata">

**Author:** [@gthb](https://discuss.circleci.com/u/gthb)\
**Replies:** 1\
**Last updated:** [February 9, 2021, 6:20pm UTC](https://discuss.circleci.com/t/using-docker-buildkit-run-mount-type-cache-and-saving-cache-across-runs/37007 "2021-02-09T18:20:49Z")

</div>

Hi. I run docker builds with DOCKER\_BUILDKIT=1 and want to use RUN --mount=type=cache on my pip install step in the Dockerfile, and of course keep the cached result across CircleCI runs. But docker does not make this cac…

[Next page](https://discuss.circleci.com/tag/cache/82.md?match_all_tags=true&page=1&tags%5B%5D=cache)
