My repo current setup under yarn workspace. After I setup caching, everything works fine till repo has no new dependencies.
When I add new dependencies and create Pull Request with yarn.lock file, the Pipeline still download old cache instead of install new dependencies and create new cache.
Is it expected behavior?
If "yes", am I need to manually delete old caches before create Pull Request contains yarn.lock file?
If "no", how can I setup for pipelines force to install new dependencies and create new caches?
Hello @Trang Công Thành ,
This is expected behaviour. The cache will expire automatically in 7 days after creation, the first build after that will repopulate it with new dependencies. So for an update it can take up to a week to be reflected in the cache.
See this documentation page, specifically:
When does a cache get cleared?
Any cache which is older than 1 week will be cleared automatically and repopulated during the next build. Additionally, caches can be cleared manually in the Bitbucket UI.
Hope this helps.
Cheers,
Daniil
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.