Commit 7bd463ae authored by Marcel Amirault's avatar Marcel Amirault Committed by Marcin Sedlak-Jakubowski

Add note about caching to ci efficiency doc

parent 72c8b986
...@@ -189,8 +189,12 @@ be more efficient, but can also make pipelines harder to understand and analyze. ...@@ -189,8 +189,12 @@ be more efficient, but can also make pipelines harder to understand and analyze.
### Caching ### Caching
Another optimization method is to use [caching](../caching/index.md) between jobs and stages, Another optimization method is to [cache](../caching/index.md) dependencies. If your
for example [`/node_modules` for NodeJS](../caching/index.md#caching-nodejs-dependencies). dependencies change rarely, like [NodeJS `/node_modules`](../caching/index.md#caching-nodejs-dependencies),
caching can make pipeline execution much faster.
You can use [`cache:when`](../yaml/README.md#cachewhen) to cache downloaded dependencies
even when a job fails.
### Docker Images ### Docker Images
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment