diff --git a/config/default.js b/config/default.js index 2e06878..a45b276 100644 --- a/config/default.js +++ b/config/default.js @@ -1,14 +1,14 @@ module.exports = { ipx: { input: { - adapter: 'file.js', + adapter: 'fs.js', dir: 'storage' }, cache: { - adapter: 'file.js', + adapter: 'fs.js', dir: 'cache', - cleanCron: '* * * * * *', - maxUnusedMinutes: 2 + cleanCron: '0 0 3 * * *', + maxUnusedMinutes: 24 * 60 } } } diff --git a/src/cache/file.js b/src/cache/fs.js similarity index 97% rename from src/cache/file.js rename to src/cache/fs.js index bf3e108..c4fbced 100644 --- a/src/cache/file.js +++ b/src/cache/fs.js @@ -3,7 +3,7 @@ const recursiveReadDir = require('recursive-readdir') const { mkdirpSync, mkdirp, exists, readFile, writeFile, stat, remove } = require('fs-extra') const debug = require('debug')('ipx:cache:file') -module.exports = class FileCache { +module.exports = class FSCache { constructor (shark) { this.shark = shark this.options = shark.options diff --git a/src/input/file.js b/src/input/fs.js similarity index 95% rename from src/input/file.js rename to src/input/fs.js index 76c7c16..f560965 100644 --- a/src/input/file.js +++ b/src/input/fs.js @@ -3,7 +3,7 @@ const isValidPath = require('is-valid-path') const { resolve, relative } = require('path') const { exists, readFile } = require('fs-extra') -module.exports = class fileAdapter { +module.exports = class FSAdapter { constructor (sharp) { this.sharp = sharp this.options = sharp.options