change location of js cache dir
This commit is contained in:
parent
85e1523b15
commit
368cbb729d
3 changed files with 6 additions and 6 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -1,8 +1,8 @@
|
||||||
|
*.log
|
||||||
|
.cache
|
||||||
|
.bukit
|
||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
persist
|
persist
|
||||||
cache
|
|
||||||
mod
|
mod
|
||||||
*.log
|
|
||||||
obj/*.stl
|
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
var exports = {
|
var exports = {
|
||||||
COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved",
|
COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved",
|
||||||
LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.",
|
LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.",
|
||||||
VERSION:"1.1.3"
|
VERSION:"1.1.4"
|
||||||
};
|
};
|
||||||
if (!module) var module = {};
|
if (!module) var module = {};
|
||||||
module.exports = exports;
|
module.exports = exports;
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ function lastmod(path) {
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
function getCachedFile(filePath, cachePath, fn) {
|
function getCachedFile(filePath, cachePath, fn) {
|
||||||
var cachePath = "cache/" + cachePath.replace(/\//g,'_'),
|
var cachePath = ".cache/" + cachePath.replace(/\//g,'_'),
|
||||||
cached = fileCache[filePath],
|
cached = fileCache[filePath],
|
||||||
now = time();
|
now = time();
|
||||||
|
|
||||||
|
|
@ -996,7 +996,7 @@ lastmod("mod") && fs.readdirSync(currentDir + "/mod").forEach(dir => {
|
||||||
});
|
});
|
||||||
|
|
||||||
// create cache dir if missing
|
// create cache dir if missing
|
||||||
lastmod("cache") || mkdirs(["cache"]);
|
lastmod(".cache") || mkdirs([".cache"]);
|
||||||
|
|
||||||
// precache responses
|
// precache responses
|
||||||
prepareScripts();
|
prepareScripts();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue