1 Caching

Many common web tasks can be sped up by caching. Caching is activated by calling a component (data or regular) with the cache parameter set. What this does is say ``If I call this component with the same arguments again before the cache expires, don't actually execute the component, but just return what's in the cache''.

The obvious question to ask is ``when does the cached version expire?'' Luckily, this has a simple answer. If you set the cache expiration in a component (either via the cache tag in an STML component, or by setting __expiration otherwise), it will expire according to that. If you don't say when the cache expires, it defaults to the value of the defaultExpiryDuration configuration variable (which defaults to 30 seconds). If you use the force or old component evaluation modes, it will follow those rules instead (see the STML Reference or the Developers Manual for details).


Subsections