Skip to content

Commit

Permalink
feat(gatsby): enable webpack caching for all (#32018) (#32032)
Browse files Browse the repository at this point in the history
(cherry picked from commit 174d3f1)

Co-authored-by: Ward Peeters <ward@coding-tech.com>
  • Loading branch information
GatsbyJS Bot and wardpeet authored Jun 22, 2021
1 parent f795be3 commit 65e04d2
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions packages/gatsby/src/utils/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@ const activeFlags: Array<IFlag> = [
telemetryId: `FastDev`,
experimental: false,
description: `Enable all experiments aimed at improving develop server start time`,
includedFlags: [
`DEV_SSR`,
`PRESERVE_FILE_DOWNLOAD_CACHE`,
`PRESERVE_WEBPACK_CACHE`,
],
includedFlags: [`DEV_SSR`, `PRESERVE_FILE_DOWNLOAD_CACHE`],
testFitness: (): fitnessEnum => true,
},
{
Expand Down Expand Up @@ -144,13 +140,7 @@ const activeFlags: Array<IFlag> = [
experimental: false,
description: `Use webpack's persistent caching and don't delete webpack's cache when changing gatsby-node.js & gatsby-config.js files.`,
umbrellaIssue: `https://gatsby.dev/cache-clearing-feedback`,
testFitness: (): fitnessEnum => {
if (sampleSiteForExperiment(`PRESERVE_WEBPACK_CACHE`, 20)) {
return `OPT_IN`
} else {
return true
}
},
testFitness: (): fitnessEnum => `LOCKED_IN`,
},
{
name: `PRESERVE_FILE_DOWNLOAD_CACHE`,
Expand Down

0 comments on commit 65e04d2

Please sign in to comment.