[web] populate clsi-cache for all users (#32369)

GitOrigin-RevId: ebe5c6b40aa98217de599f15a5bf63b6facf060b
This commit is contained in:
Jakob Ackermann
2026-03-23 09:09:59 +01:00
committed by Copybot
parent 19a3644eab
commit 01f7bba166

View File

@@ -1115,16 +1115,7 @@ function _finaliseRequest(projectId, options, project, docs, files) {
// enable for free for short period when we saw low capacity
enableCompileFromCacheUntil > Date.now()) &&
options.compileFromClsiCache,
populateClsiCache:
// enable for premium compiles
(['alpha', 'priority'].includes(options.compileGroup) ||
// enable when populating template cache
options.metricsPath === 'clsi-cache-template' ||
// populate indefinitely for free when we saw low capacity
!!enableCompileFromCacheUntil ||
// populate with compile from history enabled to re-use snapshot from cache
!!options.rawChangeOperations) &&
options.populateClsiCache,
populateClsiCache: options.populateClsiCache,
enablePdfCaching:
(Settings.enablePdfCaching && options.enablePdfCaching) || false,
pdfCachingMinChunkSize: options.pdfCachingMinChunkSize,