Skip to content

Commit 174d3f1

Browse files
authored
feat(gatsby): enable webpack caching for all (#32018)
1 parent fe853ae commit 174d3f1

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

packages/gatsby/src/utils/flags.ts

+2-12
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ const activeFlags: Array<IFlag> = [
7979
telemetryId: `FastDev`,
8080
experimental: false,
8181
description: `Enable all experiments aimed at improving develop server start time`,
82-
includedFlags: [
83-
`DEV_SSR`,
84-
`PRESERVE_FILE_DOWNLOAD_CACHE`,
85-
`PRESERVE_WEBPACK_CACHE`,
86-
],
82+
includedFlags: [`DEV_SSR`, `PRESERVE_FILE_DOWNLOAD_CACHE`],
8783
testFitness: (): fitnessEnum => true,
8884
},
8985
{
@@ -144,13 +140,7 @@ const activeFlags: Array<IFlag> = [
144140
experimental: false,
145141
description: `Use webpack's persistent caching and don't delete webpack's cache when changing gatsby-node.js & gatsby-config.js files.`,
146142
umbrellaIssue: `https://gatsby.dev/cache-clearing-feedback`,
147-
testFitness: (): fitnessEnum => {
148-
if (sampleSiteForExperiment(`PRESERVE_WEBPACK_CACHE`, 20)) {
149-
return `OPT_IN`
150-
} else {
151-
return true
152-
}
153-
},
143+
testFitness: (): fitnessEnum => `LOCKED_IN`,
154144
},
155145
{
156146
name: `PRESERVE_FILE_DOWNLOAD_CACHE`,

0 commit comments

Comments
 (0)