Skip to content

Commit 658bd18

Browse files
committed
reference(env vars): add CC_CACHE_DEPENDENCIES_EXTRA_PATHS
1 parent 1016379 commit 658bd18

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

content/doc/reference/reference-environment-variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ So you can alter the build&start process for your application.
5959
| Name | Description | Default value |
6060
|-----------------------|------------------------------|--------------------------------|
6161
|`CC_CACHE_DEPENDENCIES` | Enable caching of your build dependencies to speed up following builds. | false |
62+
|`CC_CACHE_DEPENDENCIES_EXTRA_PATHS` | Adds additional paths to dependencies cache, relative to the application folder, separated by a `:` (e.g. `vendor:../dependencies`) | |
6263
|[`CC_DISABLE_BUILD_CACHE_UPLOAD`](../../develop/env-variables/#settings-you-can-define-using-environment-variables "Settings you can define using environment variables") | Disable creation and upload of cache archive. Restarts won't be speeded up. | `false` |
6364
|[`CC_IGNORE_FROM_BUILDCACHE`](../../develop/env-variables/#settings-you-can-define-using-environment-variables "Settings you can define using environment variables") | Allows to specify paths to ignore when the build cache archive is created. | |
6465
|[`IGNORE_FROM_BUILDCACHE`](../../develop/env-variables/#settings-you-can-define-using-environment-variables "Settings you can define using environment variables") | (Deprecated) Allows to specify paths to ignore when the build cache archive is created. | |

layouts/shortcodes/content/cached-dependencies.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
#### Enabling dependencies caching
44

5-
You can enable dependencies caching by adding the `CC_CACHE_DEPENDENCIES=true` [environment variable](#setting-up-environment-variables-on-clever-cloud) in your application. It is enabled by default only for rust and haskell applications.
5+
You can enable dependencies caching by adding the `CC_CACHE_DEPENDENCIES=true` [environment variable](#setting-up-environment-variables-on-clever-cloud) in your application. It's enabled by default only for Haskell and Rust applications.
6+
7+
To add folders to the dependencies cache, use `CC_CACHE_DEPENDENCIES_EXTRA_PATHS`. These paths should comply with the following rules:
8+
- Be a subdirectory of the `$HOME` directory
9+
- Be relative to the application root directory (e.g. `vendor`, `../dependencies`)
10+
- Be separated by a `:` if you want to add multiple paths (e.g. `CC_CACHE_DEPENDENCIES_EXTRA_PATHS=vendor:../dependencies`)
611

712
#### Disabling dependencies caching
813

0 commit comments

Comments
 (0)