mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
Merge pull request #8883 from overleaf/jpa-optimize-pdf-caching
[web] optimize pdf caching GitOrigin-RevId: 85f8b8425ca0052b0d5229cec651e1d5080f1da4
This commit is contained in:
@@ -998,6 +998,39 @@ const ProjectController = {
|
||||
cb()
|
||||
})
|
||||
},
|
||||
pdfCachingPrefetchingAssignment(cb) {
|
||||
SplitTestHandler.getAssignment(
|
||||
req,
|
||||
res,
|
||||
'pdf-caching-prefetching',
|
||||
() => {
|
||||
// We'll pick up the assignment from the res.locals assignment.
|
||||
cb()
|
||||
}
|
||||
)
|
||||
},
|
||||
pdfCachingPrefetchLargeAssignment(cb) {
|
||||
SplitTestHandler.getAssignment(
|
||||
req,
|
||||
res,
|
||||
'pdf-caching-prefetch-large',
|
||||
() => {
|
||||
// We'll pick up the assignment from the res.locals assignment.
|
||||
cb()
|
||||
}
|
||||
)
|
||||
},
|
||||
pdfCachingCachedUrlLookupAssignment(cb) {
|
||||
SplitTestHandler.getAssignment(
|
||||
req,
|
||||
res,
|
||||
'pdf-caching-cached-url-lookup',
|
||||
() => {
|
||||
// We'll pick up the assignment from the res.locals assignment.
|
||||
cb()
|
||||
}
|
||||
)
|
||||
},
|
||||
},
|
||||
(
|
||||
err,
|
||||
|
||||
Reference in New Issue
Block a user