Create cache directory

This commit is contained in:
Lewis Dale 2023-03-02 12:31:15 +00:00
parent 3adc37a746
commit 8e3a999efd

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 = {};