Просмотр исходного кода

[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 9 месяцев назад
Родитель
Сommit
d056ee5b74
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      services/web/app/src/Features/Compile/CompileController.mjs

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

@@ -92,10 +92,7 @@ async function _getSplitTestOptions(req, res) {
         'clsi-cache-prompt'
         'clsi-cache-prompt'
       ))
       ))
     populateClsiCache = variant === 'enabled'
     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
   const pdfDownloadDomain = Settings.pdfDownloadDomain