Create cache directory
This commit is contained in:
parent
3adc37a746
commit
8e3a999efd
@ -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 = {};
|
||||
|
Loading…
Reference in New Issue
Block a user