Add refresh hook

parent cbe969fb
......@@ -24,4 +24,9 @@
((@ (app models posts) get-all-posts))
(display "done\n")))
(run-when-refresh!
(lambda ()
(system (format #f "rm -f ~a/tmp/cache/index.html" (current-toplevel)))
(system (format #f "rm -f ~a/tmp/cache/feed_atom.html" (current-toplevel)))))
;; Put whatever you want to be called before server running here
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment