c.cacheFor ([minutes : int], seconds : int) : void

The function cacheFor creates a dependency to a specific moment in time. The currently computed item will be invalidated at this specific moment.

Time dependencies are additional dependencies. The current computation may still be invalidated through other data modifications.

<xsl:value-of select="c.cacheFor(5, 30)" />
Validity for 5 minutes and 30 seconds

The same method already exists as an xml tag.

<c.cache minutes="5" seconds="30" />
Cache for 5 minutes and 30 seconds