clerk 2025-01-22

what might prevent caching of a form? I have

(def spanner-items
  [(java.time.Instant/now)
   (next.jdbc/execute! (:sql/db-datasource system) ["SELECT * FROM items WHERE sav IS NOT NULL;"])])
and my Instant changes on every clerk/show!. it doesn't for
(def savs-table
  [(java.time.Instant/now)
   (next.jdbc/execute! duckconn ["INSTALL vss"])
   (next.jdbc/execute! duckconn ["LOAD vss"])
   (next.jdbc/execute! duckconn ["CREATE TABLE IF NOT EXISTS savs (item_remote_id VARCHAR, sav FLOAT[26])"])])
my first thought is (:sql/db-datasource system) isn't being frozen correctly, but not sure how to confirm

You saw the ^:nextjournal.clerk/no-cache option - don't know enough to know if that will work in this instance though :-)

I want the opposite. I want both forms to be cached