From 2ff906310a04ee32826c38800e038d764b1c8fd2 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Thu, 26 Aug 2021 09:40:47 -0700 Subject: [PATCH] feat(gatsby): enable webpack caching in development for everyone In 3.12 we bumped this to 20% and there hasn't been a peep about trouble so let's enable it for everyone. --- packages/gatsby/src/utils/flags.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/gatsby/src/utils/flags.ts b/packages/gatsby/src/utils/flags.ts index 4557c5c7774d5..af8ebecb594d8 100644 --- a/packages/gatsby/src/utils/flags.ts +++ b/packages/gatsby/src/utils/flags.ts @@ -162,13 +162,7 @@ const activeFlags: Array = [ experimental: false, description: `Enable webpack's persistent caching during development. Speeds up the start of the development server.`, umbrellaIssue: `https://gatsby.dev/cache-clearing-feedback`, - testFitness: (): fitnessEnum => { - if (sampleSiteForExperiment(`DEV_WEBPACK_CACHE`, 20)) { - return `OPT_IN` - } else { - return true - } - }, + testFitness: (): fitnessEnum => `LOCKED_IN`, }, { name: `PRESERVE_FILE_DOWNLOAD_CACHE`,