* cache: server-side and client-side caching. * flush: refresh cached page(s). * clientcache: browser-side caching only. To cache a personalized page, use this option. * servercache: server-side caching only. Not recommended. * optimal: same as "cache".
Absolute path of cache directory.
The interval until the page is flushed from the cache.
Used with action = "flush". A URL reference. CFML matches it against the mappings in the specified cache directory. Can include wildcards. For example: "*/view.cfm?id=*".
Remote port to which to connect
Protocol that is used to create URL from cache.
For action="set", object which needs to be stored
Name of the struct variable
A Boolean value specifying whether to throw an error if the flush action encounters an error. Otherwise the action does not generate an error if it fails. If this attribute is 'true' you can handle the error in a cfcatch block,for example, if a specified id value is invalid
Id of the cached object
key to access cache
to use cache or not (if false it will process the content each time)
Comma seperated list of all variables on which this cache would depend
Flushes the cached item if it is not accessed for the specified time span.
name of return variable, valid with action="get"
Examples sample code using the cfcache tag
Adding a page to the cache
Puts HTML page into the cache and uses the cached version on subsequent calls to the page.