Skip to content

Commit 882774f

Browse files
committed
fixup! Update Caching Strategies to Layer Types
Signed-off-by: Aidan Delaney <[email protected]>
1 parent 7b32f10 commit 882774f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/buildpack-author-guide/caching-strategies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This will guarantee that the previously published application image layer in the
3535

3636
Setting `build = true` makes a layer available to subsequent buildpacks. Therefore binaries installed to the `bin` directory on a `build = true` layer are available to subsequent buildpacks during the build phase. It is also the case that `lib` directories on a `build = true` later are added to the `LD_LIBRARY_PATH` during the build phase of subsequent buildpacks. Environment variables defined in a `build = true` layer are similarly available. For any layer where `launch = true` and `build = true`, a launch layer from the OCI registry can no longer be reused. Instead, the layer must be made available locally so that subsequent buildpacks can use it.
3737

38-
Setting `cache = true` keeps a local cache of the layer. The cache is restored before the buildpacks build phase.
38+
Setting `cache = true` ensures that the layer is restored locally before the buildpacks build phase.
3939

4040
Setting `cache = false`, `build = false`, and `launch = true` is the most common configuration. If `cache = false`, `build = false`, and `launch = true` is not appropriate for your layer, then `cache = true`, `build = true`, and `launch = true` should be the next combination to evaluate:
4141

0 commit comments

Comments
 (0)