File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 268
268
(process-cljs parsed-doc)
269
269
(let [{:as analyzed-doc :keys [ns ]}
270
270
271
- (if no-cache
271
+ (cond
272
+ no-cache
272
273
parsed-doc
274
+
275
+ config/cache-disabled?
276
+ (assoc parsed-doc :no-cache true )
277
+
278
+ :else
273
279
(do
274
280
(when set-status-fn
275
281
(set-status-fn {:progress 0.10 :status " Analyzing…" }))
286
292
(defn eval-doc
287
293
" Evaluates the given `doc`."
288
294
([doc] (eval-doc {} doc))
289
- ([in-memory-cache doc]
290
- (+eval-results in-memory-cache
291
- (cond-> doc
292
- config/cache-disabled?
293
- (assoc :no-cache true )))))
295
+ ([in-memory-cache doc] (+eval-results in-memory-cache doc)))
294
296
295
297
(defn eval-file
296
298
" Reads given `file` (using `slurp`) and evaluates it."
313
315
#_(eval-string " (+ 39 3)" )
314
316
315
317
#_(nextjournal.clerk/show! " notebooks/hello.md" )
316
-
You can’t perform that action at this time.
0 commit comments