Skip to content

Commit 6c02f4b

Browse files
committed
reference(env vars): add CC_CACHE_DEPENDENCIES_EXTRA_PATHS
1 parent 707d5fa commit 6c02f4b

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
@@ -63,6 +63,7 @@ You can set some tools' version in any runtime (except Docker):
6363
| Name | Description | Default value |
6464
|-----------------------|------------------------------|--------------------------------|
6565
|`CC_CACHE_DEPENDENCIES` | Enable caching of your build dependencies to speed up following builds. | false |
66+
|`CC_CACHE_DEPENDENCIES_EXTRA_PATHS` | Adds additional paths to dependencies cache, relative to the application folder, separated by a `:` (e.g. `vendor:../dependencies`) | |
6667
|[`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` |
6768
|[`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. | |
6869
|[`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. | |

shared/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)