Skip to content

Commit 850826c

Browse files
GatsbyJS BotLekoArts
GatsbyJS Bot
andauthored
chore(gatsby): Bump PRESERVE_WEBPACK_CACHE flag to 20% (#31803) (#31825)
(cherry picked from commit 72d795c) Co-authored-by: Lennart <[email protected]>
1 parent 90c745c commit 850826c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/gatsby/src/utils/flags.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,13 @@ const activeFlags: Array<IFlag> = [
144144
experimental: false,
145145
description: `Use webpack's persistent caching and don't delete webpack's cache when changing gatsby-node.js & gatsby-config.js files.`,
146146
umbrellaIssue: `https://gatsby.dev/cache-clearing-feedback`,
147-
testFitness: (): fitnessEnum => true,
147+
testFitness: (): fitnessEnum => {
148+
if (sampleSiteForExperiment(`PRESERVE_WEBPACK_CACHE`, 20)) {
149+
return `OPT_IN`
150+
} else {
151+
return true
152+
}
153+
},
148154
},
149155
{
150156
name: `PRESERVE_FILE_DOWNLOAD_CACHE`,

0 commit comments

Comments
 (0)