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.
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events