Merge pull request #56 from sharelatex/bg-disable-qpdf-setting
add setting to avoid optimisations outside docker
This commit is contained in:
@@ -172,8 +172,13 @@ module.exports = OutputCacheManager =
|
|||||||
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
|
else
|
||||||
# call the optimiser for the file too
|
if Settings.clsi?.optimiseInDocker
|
||||||
OutputFileOptimiser.optimiseFile src, dst, callback
|
# don't run any optimisations on the pdf when they are done
|
||||||
|
# in the docker container
|
||||||
|
callback()
|
||||||
|
else
|
||||||
|
# call the optimiser for the file too
|
||||||
|
OutputFileOptimiser.optimiseFile src, dst, callback
|
||||||
|
|
||||||
_checkIfShouldCopy: (src, callback = (err, shouldCopy) ->) ->
|
_checkIfShouldCopy: (src, callback = (err, shouldCopy) ->) ->
|
||||||
return callback(null, !Path.basename(src).match(/^strace/))
|
return callback(null, !Path.basename(src).match(/^strace/))
|
||||||
|
|||||||
Reference in New Issue
Block a user