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

Option to not saving cache for paritial match cache keys on feature branches. #57

Open
huxuan opened this issue Jun 17, 2024 · 0 comments

Comments

@huxuan
Copy link

huxuan commented Jun 17, 2024

It would be great if there is an option to only restore cache on pull requests, since the cases that reusing caches from feature branch are really rare. IMO, reuse the cache from the main branch should be enough.

Currently, the paritial match cache keys works fine, so I suppose we only need an option to not saving the cache when primary key and matched key are not equal.

BTW, the corresponding option in GitLab CI/CD is policy: https://docs.gitlab.com/ee/ci/yaml/#cachepolicy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant