mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
[web] populate clsi-cache for all users (#32369)
GitOrigin-RevId: ebe5c6b40aa98217de599f15a5bf63b6facf060b
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user