diff --git a/services/web/app/coffee/Features/Compile/ClsiManager.coffee b/services/web/app/coffee/Features/Compile/ClsiManager.coffee index 6b77ab3abf..a61a30e88c 100755 --- a/services/web/app/coffee/Features/Compile/ClsiManager.coffee +++ b/services/web/app/coffee/Features/Compile/ClsiManager.coffee @@ -125,7 +125,7 @@ module.exports = ClsiManager = if project.compiler not in ClsiManager.VALID_COMPILERS project.compiler = "pdflatex" - if options.incremental or options.syncType? # new way, either incremental or full + if options.incrementalCompilesEnabled or options.syncType? # new way, either incremental or full timer = new Metrics.Timer("editor.compile-getdocs-redis") ClsiManager.getContentFromDocUpdaterIfMatch project_id, project, (error, projectStateHash, docUpdaterDocs) -> timer.done() diff --git a/services/web/app/coffee/Features/Compile/CompileController.coffee b/services/web/app/coffee/Features/Compile/CompileController.coffee index 98b1a69a7f..9f056ddc6f 100755 --- a/services/web/app/coffee/Features/Compile/CompileController.coffee +++ b/services/web/app/coffee/Features/Compile/CompileController.coffee @@ -30,8 +30,8 @@ module.exports = CompileController = options.draft = req.body.draft if req.body?.check in ['validate', 'error', 'silent'] options.check = req.body.check - if req.body?.incremental - options.incremental = true + if req.body?.incrementalCompilesEnabled + options.incrementalCompilesEnabled = true logger.log {options:options, project_id:project_id, user_id:user_id}, "got compile request" CompileManager.compile project_id, user_id, options, (error, status, outputFiles, clsiServerId, limits, validationProblems) -> return next(error) if error? diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index 34b3b190e6..42c1cd1bc8 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -105,7 +105,7 @@ define [ rootDoc_id: options.rootDocOverride_id or null draft: $scope.draft check: checkType - incremental: window.user?.betaProgram + incrementalCompilesEnabled: window.user?.betaProgram _csrf: window.csrfToken }, {params: params}