Allow sharing cache between workflows
L
Lee Bradley
Instead of restricting the cache to jobs within a workflow allow the same cache to be shared between workflowsIf users cache based off a lock file then there is no need to re-download dependencies each time. If users need to for some reason then they can use the CIRCLE_BUILD_NUM environment variable.
CCI-I-1409
V
Vinny Thanh
Hi Lee Bradley, caches exist at a key and are global for the entire project regardless of workflow. It's only workspaces that are limited to the scope of a single workflow.
As long as you're keying by something reproducible/accessible in multiple workflows (e.g., your package lock file), there shouldn't be any issues with sharing caches between workflows.
If you need specific help with your scenario you can always feel free to reach out to support.
L
Lee Bradley
Yeah this would drastically reduce build times for 90% of jobs but still give flexibility where needed