Cached directories

This settings controls whether and which folder are cached for deployment. This will speed deployment from the second time you deploy.

# How it works

During most deployments the build commands will include something like composer install or npm install. These processes will download dependencies and populate the vendor and the node_modules folders. The cached directories defines folder to be preserved and re-used without downloading all dependencies with each deployment. Thus first deployment may take a couple of minutes, but successive deployments will be much faster.

Note that this is a setting that happens on the deploy service, not on the environment, see the deployment intro.

# Default settings

vendor
node_modules
plain

In most cases the default setting is what you want. To disable cached directories, save an empty value.

# Purging cached directories

It can be helpful to purge the cached directories. Purging the cached directories, as the title suggests, will delete all files and folders, so next time during deployment a new cache will be created.

There is a button with the dashboard to purge the cache. Saving the cached directories will also purge the cache.

Found a tpyo?Edit