Procházet zdrojové kódy

[web] enable compileFromClsiCache independent of clsi-cache-prompt (#29366)

The split test is active now and .active is only set in the dev-env.

GitOrigin-RevId: ed4a379e2144c2a08497eb0cf42ef16077f7ad27
Jakob Ackermann před 9 měsíci
rodič
revize
d056ee5b74

+ 1 - 4
services/web/app/src/Features/Compile/CompileController.mjs

@@ -92,10 +92,7 @@ async function _getSplitTestOptions(req, res) {
         'clsi-cache-prompt'
       ))
     populateClsiCache = variant === 'enabled'
-    if (res.locals.splitTestInfo?.['clsi-cache-prompt']?.active) {
-      // Start using the cache when the split-test for the prompts is activated.
-      compileFromClsiCache = populateClsiCache
-    }
+    compileFromClsiCache = populateClsiCache
   }
 
   const pdfDownloadDomain = Settings.pdfDownloadDomain