10000 Merge pull request #187 from circleci/eric-pull-cache-example · github-cloud/circleci-docs@0e98f42 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e98f42

Browse files
authored
Merge pull request circleci#187 from circleci/eric-pull-cache-example
Add example to cache section
2 parents ff8b59b + 78cf5ad commit 0e98f42

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

jekyll/_docs/how-cache-works.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ builds, therefore making the builds run faster.
1313

1414
There are two collections of directories which are cached.
1515

16-
1. The directories which you specify in the `dependencies: cache_directories`
17-
section of your `circle.yml`
18-
2. The directories used by the following languages and dependency managers:
16+
1. The directories used by the following languages and dependency managers:
1917

2018
- Bower
2119
- Bundler
@@ -29,6 +27,18 @@ There are two collections of directories which are cached.
2927
- Play
3028
- Virtualenv
3129

30+
2. The directories which you specify in the `dependencies: cache_directories`
31+
section of your `circle.yml`, like so:
32+
33+
```
34+
dependencies:
35+
# we automatically cache and restore many dependencies between
36+
# builds. If you need to, you can add custom paths to cache:
37+
cache_directories:
38+
- "custom_1" # relative to the build directory
39+
- "~/custom_2" # relative to the user's home directory
40+
```
41+
3242
### Per-branch cache
3343

3444
Each branch of your project will have a separate cache. If it is the

0 commit comments

Comments
 (0)
0