pvaneynd: (Default)
[personal profile] pvaneynd
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:




(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.

Profile

pvaneynd: (Default)
pvaneynd

September 2023

S M T W T F S
     12
3456789
10111213141516
171819 20212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 2nd, 2025 01:37 am
Powered by Dreamwidth Studios