File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ Instances of quickblog can be seen here:
15
15
- [ Henry Widd's blog] ( https://widdindustries.com/blog )
16
16
- [ Anders means different] ( https://www.eknert.com/blog ) - ([ source] ( https://github.com/anderseknert/blog ) )
17
17
18
+ ## 0.3.6 (2031-12-31)
19
+
20
+ - Fix caching (this is hard)
21
+
18
22
## 0.3.5 (2023-12-31)
19
23
20
24
- Better caching when switching between watch and render
Original file line number Diff line number Diff line change 188
188
:favicon-out-dir (out-dir-ify favicon-out-dir))))
189
189
190
190
(defn update-cache-dir [opts]
191
- (let [cache-dir (:cache-dir opts)
192
- cache-dir (when cache-dir
193
- (if (:watch opts)
194
- (str (fs/file cache-dir " dev" ))
195
- (str (fs/file cache-dir " prod" ))))]
196
- (assoc opts :cache-dir cache-dir)))
191
+ (if (:cache-dir-final opts)
192
+ opts
193
+ (let [cache-dir (:cache-dir opts)
194
+ cache-dir (when cache-dir
195
+ (if (:watch opts)
196
+ (str (fs/file cache-dir " dev" ))
197
+ (str (fs/file cache-dir " prod" ))))]
198
+ (assoc opts :cache-dir cache-dir :cache-dir-final true ))))
197
199
198
200
(defn- update-opts [opts]
199
201
(-> opts
612
614
(let [{:keys [assets-dir assets-out-dir posts-dir templates-dir]
613
615
:as opts}
614
616
(-> opts
615
- apply-default-opts
616
617
(assoc :watch (format " <script type=\" text/javascript\" src=\" %s\" ></script>"
617
618
lib/live-reload-script))
619
+ apply-default-opts
618
620
render)]
619
621
(reset! posts-cache (:posts opts))
620
622
(serve opts false )
You can’t perform that action at this time.
0 commit comments