5 <:cache:>

<:cache [ until | duration ]:>

This tag, located in STML components and data components (it's not allowed in non-components), tells SkunkWeb how long, or until when, to cache the component's output (or data component's return object) if it is called with cache=yes.

This tag accepts one argument, either until or duration. You must pass this argument by name: <:cache until=foo:> or <:cache duration=foo:>.

If you do not use either argument, the component will cache for around 30 seconds by default. The default cache length is configurable in your SkunkWeb configuration file using the defaultExpiryDuration configuration variable.


Subsections