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
|
||||
node_modules
|
||||
persist
|
||||
cache
|
||||
mod
|
||||
*.log
|
||||
obj/*.stl
|
||||
package-lock.json
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
var exports = {
|
||||
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.",
|
||||
VERSION:"1.1.3"
|
||||
VERSION:"1.1.4"
|
||||
};
|
||||
if (!module) var module = {};
|
||||
module.exports = exports;
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ function lastmod(path) {
|
|||
* @returns {*}
|
||||
*/
|
||||
function getCachedFile(filePath, cachePath, fn) {
|
||||
var cachePath = "cache/" + cachePath.replace(/\//g,'_'),
|
||||
var cachePath = ".cache/" + cachePath.replace(/\//g,'_'),
|
||||
cached = fileCache[filePath],
|
||||
now = time();
|
||||
|
||||
|
|
@ -996,7 +996,7 @@ lastmod("mod") && fs.readdirSync(currentDir + "/mod").forEach(dir => {
|
|||
});
|
||||
|
||||
// create cache dir if missing
|
||||
lastmod("cache") || mkdirs(["cache"]);
|
||||
lastmod(".cache") || mkdirs([".cache"]);
|
||||
|
||||
// precache responses
|
||||
prepareScripts();
|
||||
|
|
|
|||
Loading…
Reference in a new issue