diff --git a/src/_data/posts.js b/src/_data/posts.js index 9fe46b8..ed57fca 100644 --- a/src/_data/posts.js +++ b/src/_data/posts.js @@ -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 = {};