Create cache directory
This commit is contained in:
1 parent
3adc37a746
commit
8e3a999efd
1 file changed
+4
@@ -13,6 +13,10 @@ class PostCache {
|
||||
}
|
||||
|
||||
readCache() {
|
||||
if (!fs.existsSync(".cache")) {
|
||||
fs.mkdirSync(".cache");
|
||||
}
|
||||
|
||||
if (!fs.existsSync(".cache/wordpress_post_fetch.json")) {
|
||||
this.last_read_date = null;
|
||||
this.posts = {};
|
||||
|
||||
Reference in new issue
Block a user