nugget of code
Sep. 29th, 2004 09:07 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Suppose you have a feature debug that you use to turn on debugging, and that if debug is on *features* you want to araneida not to cache your responses for a day. Then you can use the following code:
The #-debug #-debug will exclude both expressions that follow. Another neat trick I've learned from Erik Naggum.
(araneida:request-send-headers
request
:content-type "text/html"
;; cache this page for 24h
#-debug #-debug
:expires (+ (get-universal-time) (* 60 60 24)))
The #-debug #-debug will exclude both expressions that follow. Another neat trick I've learned from Erik Naggum.