Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple cache keys #157

Open
bbugh opened this issue Aug 2, 2019 · 5 comments
Open

Allow multiple cache keys #157

bbugh opened this issue Aug 2, 2019 · 5 comments
Labels
type: enhancement New feature or request

Comments

@bbugh
Copy link

bbugh commented Aug 2, 2019

We are exploring this orb for a Rails and Vue app. bundle for gems can take quite a while since we have some native gems that require a build process. Unfortunately, with this orb, there does not seem to be any way to use the bundler cache that we produce as part of our workflow.

I imagine the feature would look like this:

workflows:
  build:
    jobs:
      - cypress/run:
          yarn: true
          cache-keys: 
            - 'yarn-packages-{{ arch }}-{{ checksum "yarn.lock" }}'
            - 'bundler-{{ arch }}-{{ checksum "Gemfile.lock" }}'
@juliusdelta
Copy link

Bump.

Same here. Our company uses React on Rails and we were trying to use this orb to update our circle configuration. We cache our gems as well and our yarn dependencies in separate caches so we're not currently able to grab the cache-keys for the multiple caches we have.

@bahmutov
Copy link
Contributor

I would love someone to implement this, because I am not sure how it would work - don't you need to implement different paths to cache, for example?

@jennifer-shehane jennifer-shehane added the type: enhancement New feature or request label Apr 22, 2020
@atsepkov
Copy link

atsepkov commented Jun 5, 2020

We have a need for this as well. @bahmutov is it possible to simply expose Circle's native save_cache and restore_cache parameters directly? That would handle multiple keys as well as multiple paths.

@bahmutov
Copy link
Contributor

bahmutov commented Jun 5, 2020 via email

@RyanofWoods
Copy link

Slightly different, but due to the cache key inflexibility, it's also preventing developers from using fallback cache keys to improve the cache hit rate and improve build times further.

For example, the node orb allows this:
https://github.com/CircleCI-Public/node-orb/blob/b6951b9d4f5afda3baa3f38e0d84f94941ba06c9/src/commands/install-packages.yml#L70-L72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants