Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 5a52406

Browse files
committed
ci: remove cache key fallback
While having a cache key fallback can be beneficial it also results in increased cache size the currently the cache size almost doubled in size to 2.6Gib because it is never cleaned and results in slower builds.
1 parent 08657f9 commit 5a52406

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
# (Using the tag in not necessary when pinning by ID, but include it anyway for documentation purposes.)
1616
# **NOTE 2**: If you change the version of the docker images, also change the `cache_key` suffix.
1717
var_1: &docker_image circleci/node:10.16-browsers@sha256:d2a96fe1cbef51257ee626b5f645e64dade3e886f00ba9cb7e8ea65b4efe8db1
18-
var_2: &cache_key v8-nguniversal-{{ checksum "yarn.lock" }}-{{ checksum "WORKSPACE" }}-node-10.16
19-
var_3: &cache_key_fallback v8-nguniversal-
18+
var_2: &cache_key v1-nguniversal-{{ checksum "yarn.lock" }}-{{ checksum "WORKSPACE" }}-node-10.16
2019

2120
# Workspace initially persisted by the `setup` job.
2221
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
@@ -61,7 +60,6 @@ jobs:
6160
- restore_cache:
6261
keys:
6362
- *cache_key
64-
- *cache_key_fallback
6563
- run: yarn install --frozen-lockfile --non-interactive
6664
# Reduces ~25mb from being persisted to the workspace
6765
- run: rm -rf .git

0 commit comments

Comments
 (0)