Company | Newzulu Platform | Developer

Developer Template Documentation v4.12.4.15

fm:Cache


This component allows you to cache it's contents for a specific amount of time. This will decrease the amount of time needed to generate a page (or a section of a page) as the contents are only generated at the specified interval, instead of for every request.

We can highly recommend using this to wrap around other components, includes, or wherever this seems feasable.

Example

<fm:Cache cacheId="myHomePageGallery"> <!-- Lots of complicated code goes here. --> </fm:Cache>

Supported attributes

NameRequiredDefaultDescription
cacheIdRequiredN/AA unique identifier for this cache. This id is shared across the application, and should be unique.
cacheTimeoutOptional600The number of seconds until this cache should expire.

The cacheId is the only required template variable here. If the 'cacheTimeout' attribute is not supplied, we default to 10 minutes.

See also

<< 3.2.1 fm:Array 3.2.3 fm:Case >>