Skip to content

Commit 513c47a

Browse files
Add comments to explain restore_cache better
Added a couple of comments that explain how restore_cache works. Also comments reference relevant CircleCI page on caching.
1 parent 7c67247 commit 513c47a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jekyll/_cci2/language-php.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs: # a collection of steps
6060
- restore_cache: # special step to restore the dependency cache if `composer.lock` does not change
6161
keys:
6262
- composer-v1-{{ checksum "composer.lock" }}
63+
# fallback to using the latest cache if no exact match is found (See https://circleci.com/docs/2.0/caching/)
6364
- composer-v1-
6465
- run: composer install -n --prefer-dist
6566
- save_cache: # special step to save the dependency cache with the `composer.lock` cache key template
@@ -69,6 +70,7 @@ jobs: # a collection of steps
6970
- restore_cache: # special step to restore the dependency cache if `package.json` does not change
7071
keys:
7172
- node-v1-{{ checksum "package.json" }}
73+
# fallback to using the latest cache if no exact match is found (See https://circleci.com/docs/2.0/caching/)
7274
- node-v1-
7375
- run: yarn install
7476
- save_cache: # special step to save the dependency cache with the `package.json` cache key template

0 commit comments

Comments
 (0)