Create cache directory

This commit is contained in:
Lewis Dale committed 2023-03-02 12:31:15 +00:00
1 parent 3adc37a746
commit 8e3a999efd
1 file changed
+4
+4
View File
@@ -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 = {};