We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PRESERVE_WEBPACK_CACHE
1 parent a479d7d commit 72d795cCopy full SHA for 72d795c
packages/gatsby/src/utils/flags.ts
@@ -144,7 +144,13 @@ const activeFlags: Array<IFlag> = [
144
experimental: false,
145
description: `Use webpack's persistent caching and don't delete webpack's cache when changing gatsby-node.js & gatsby-config.js files.`,
146
umbrellaIssue: `https://gatsby.dev/cache-clearing-feedback`,
147
- testFitness: (): fitnessEnum => true,
+ testFitness: (): fitnessEnum => {
148
+ if (sampleSiteForExperiment(`PRESERVE_WEBPACK_CACHE`, 20)) {
149
+ return `OPT_IN`
150
+ } else {
151
+ return true
152
+ }
153
+ },
154
},
155
{
156
name: `PRESERVE_FILE_DOWNLOAD_CACHE`,
0 commit comments