This commit is contained in:
1 parent
2c297a0298
commit
3b39d8d85f
1 file changed
+3
@@ -52,6 +52,9 @@ const cachedContent = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const storeCache = (content = []) => {
|
const storeCache = (content = []) => {
|
||||||
|
if (!fs.existsSync('.cache')) {
|
||||||
|
fs.mkdirSync('.cache');
|
||||||
|
}
|
||||||
fs.writeFileSync(cacheFile, JSON.stringify(content));
|
fs.writeFileSync(cacheFile, JSON.stringify(content));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user