Merge pull request #56 from sharelatex/bg-disable-qpdf-setting

add setting to avoid optimisations outside docker
This commit is contained in:
Brian Gough
2017-04-11 14:16:19 +01:00
committed by GitHub

View File

@@ -171,6 +171,11 @@ module.exports = OutputCacheManager =
else if err? else if err?
logger.error err: err, src: src, dst: dst, "copy error for file in cache" logger.error err: err, src: src, dst: dst, "copy error for file in cache"
callback(err) callback(err)
else
if Settings.clsi?.optimiseInDocker
# don't run any optimisations on the pdf when they are done
# in the docker container
callback()
else else
# call the optimiser for the file too # call the optimiser for the file too
OutputFileOptimiser.optimiseFile src, dst, callback OutputFileOptimiser.optimiseFile src, dst, callback