1 Using the duration argument

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:

integer d
Cache for integer number of days.
integer h
Cache for integer number of hours.
integer m
Cache for integer number of minutes.
integer s
Cache for integer number of seconds.

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)