TAG:CFOBJECTCACHE
last edited by
gef
on 03-Oct-2011
|
cfobjectcache
Syntax
<cfobjectcache [action="string"] [filter="object"] [filterignorecase="string"] [result="string"]>
[] = Optional attribute
Description
Flushes the query cache
Body
This tag can't have a body.
Attributes
The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
| Name | Type | Required | Description |
| action | string | No | Clears queries from the cache in the Application scope. |
| filter | any | No | filter for the elements to delete. Can be a function as well. See remarks under history. |
| filterignorecase | string | No | filter for the elements to delete |
| result | string | No | name for variables for action size |
History
Railo 3.3: The filter attribute for the tags cfdirectory and cfobjectcache allows you to narrow down selections. You can pass in a function with this argument that defines whether an entry will match your custom filter or not. Example:
<cffunction name="filter" returntype="boolean"> <cfargument name="sql" type="string" required="yes"> <cfreturn FindNoCase("T1385",sql)> </cffunction> <cfobjectcache action="clear" filter="#filter#">
SideBar
User Login