Be able to retrieve cache if present but not upload it if not #10564
-
SummaryHi there! Is there a way to be able at the same time to:
We have a step in our CI that is on the critical path in terms of duration so we would like to benefit from the cache if it exists but not spend time uploading data if not. It takes ~15s seconds to do the upload which would be great to avoid. Thanks in advance for you answer! Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
It sounds like you're looking for the To ensure you can read from but not write to the Remote Cache, that would be |
Beta Was this translation helpful? Give feedback.
It sounds like you're looking for the
--cacheflag: https://turborepo.com/docs/reference/run#--cache-optionsTo ensure you can read from but not write to the Remote Cache, that would be
--cache=remote:r.