Team Caching
Last updated
Was this helpful?
Last updated
Was this helpful?
One of the most important features of Garden is its smart caching abilities. Garden calculates the version of each action, based on the source files and configuration involved, as well as any upstream dependencies. When using Garden, you'll see various instances of v-<some hash>
strings scattered around logs, e.g. when building, deploying, running tests, etc.
These versions are used by Garden to work out which actions need to be performed whenever you want to build, deploy or test your project.
The version is stored in the Garden Cloud backend and can be shared with your team and across CI runs. This means that if you open a pull request that triggers several Test actions to be run, then push a new commit that only changes files that belong to one of the tests, only that test will re-run.
Our free-tier has limits on cache retention and number of cache hits that you can increase by switching to our team or enterprise tiers. You can learn more about the different plans here.
Team Caching is enabled automatically as long you've connected your project to the Garden Cloud backend.