If you specify duration, the value should be a string specifying the length of time to cache. It's a string with no whitespace, and a sequence of integer-letter pairs specifying untis of time:
You may use any combination of these integer-letter pairs, in any order; SkunkWeb will add them all up and cache for the sum period of time:
# cache for 10 minutes <:cache duration=10m:> # cache for 10 hours, 10 minutes <:cache duration=10h10m:> # cache for 2 days, 40 seconds <:cache duration=40s2d:> # cache for 60 imnutes (silly) <:cache duration=40m20m:>
The Python equivalent of the <:cache duration=foo:> tag is:
import TimeUtil __expiration = TimeUtil.convertDuration(foo)