keep one extra build until per-page pdf serving is enabled

This commit is contained in:
Brian Gough 2016-06-29 16:31:08 +01:00
parent 03188d2a57
commit dd4e1e17b5

View file

@ -90,7 +90,7 @@ module.exports = OutputCacheManager =
# pass back the list of new files in the cache # pass back the list of new files in the cache
callback(err, results) callback(err, results)
# let file expiry run in the background, expire all previous files if per-user # let file expiry run in the background, expire all previous files if per-user
OutputCacheManager.expireOutputFiles cacheRoot, {keep: buildId, limit: if perUser then 0 else null} OutputCacheManager.expireOutputFiles cacheRoot, {keep: buildId, limit: if perUser then 1 else null}
archiveLogs: (outputFiles, compileDir, buildId, callback = (error) ->) -> archiveLogs: (outputFiles, compileDir, buildId, callback = (error) ->) ->
archiveDir = Path.join(compileDir, OutputCacheManager.ARCHIVE_SUBDIR, buildId) archiveDir = Path.join(compileDir, OutputCacheManager.ARCHIVE_SUBDIR, buildId)