Merge pull request #2699 from overleaf/jpa-test-perf
[perf] enable view caching for acceptance tests GitOrigin-RevId: 696958a617392d20b594141aa316b5a80755ff38
This commit is contained in:
@@ -234,6 +234,10 @@ if (enableWebRouter || notDefined(enableWebRouter)) {
|
||||
logger.info('precompiling views for web in production environment')
|
||||
Views.precompileViews(app)
|
||||
}
|
||||
if (app.get('env') === 'test') {
|
||||
logger.info('enabling view cache for acceptance tests')
|
||||
app.enable('view cache')
|
||||
}
|
||||
|
||||
app.use(publicApiRouter) // public API goes with web router for public access
|
||||
app.use(Validation.errorMiddleware)
|
||||
|
||||
Reference in New Issue
Block a user