action
string, optional
|
- cache (default): server-side and client-side template caching.
- flush: refresh cached pages (template caching).
- clientcache: browser-side caching only. To cache a personalized page, use this option.
- servercache: server-side caching only. Not recommended.
- optimal: same as "cache".
- content: same as cache, but cache only the body of the tag, not the complete template (template caching).
- put: adds a key value pair to object cache (see function cachePut for more details)
- get: gets value matching given key from object cache (see function cacheGet for more details)
|
cache
|
key
string, optional
|
key to access cache
|
|
id
any, optional
|
Id of the cached object
|
|
throwonerror
boolean, optional
|
A Boolean value specifying whether t 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
|
|
name
string, optional
|
name of return variable, valid with action="get"
|
|
metadata
string, optional
|
Name of the struct variable
|
|
value
any, optional
|
For action="set", object which needs to be stored
|
|
cachename
string, optional
|
definition of the cache used by name, when not set the "default Object Cache" defined in Lucee Administrator is used instead.
|
|
protocol
string, optional
|
Specifies the protocol used to create pages from cache. Either http:// or https://. The default
is http://.
|
|
timespan
timespan, optional
|
The interval until the item is flushed from the cache.
A decimal number of days, for example:
- .25, for one-fourth day (6 hours)
- 1, for one day
- 1.5, for one and one half days
A return value from the CreateTimeSpan function, for example, "#CreateTimeSpan(0,6,0,0)#".
The default action is to flush the item when it is idle for the time specified by the idleTime attribute, or cfcache action="flush" executes.
|
|
idletime
timespan, optional
|
Flushes the cached item if it is not accessed for the specified time span:
A decimal number of days, for example:
- .25, for one-fourth day (6 hours)
- 1, for one day
- 1.5, for one and one half days
A return value from the CreateTimeSpan function, for example, "#CreateTimeSpan(0,6,0,0)#".
|
|
directory
string, optional
|
Absolute path of cache directory.
|
|
cachedirectory
string, optional
|
Absolute path of cache directory (alias for directory).
|
|
expireurl
string, optional
|
A URL reference.
Can include wildcards, for example: "/view.cfm?id=".
Lucee flushes, from the cache, pages that match the specified URL or pattern.
|
|
port
number, optional
|
Port number of the web server from which the URL for the cached page is requested.
In the internal call from cfcache to cfhttp, Lucee resolves each URL variable in the page; this ensures that links in the page remain functional.
|
|