ORMEvictQueries

Description

This method is used to evict the data of all the queries from the default query cache. If cache name is specified, then, the data of all the queries belonging to the cache region with the given cache name are evicted.

Category

ORM functions

See Also

ORMEvictEntity, ORMEvictCollection, Evict content from secondary cache in Developing ColdFusion Applications

Function Syntax

ORMEvictQueries([cachename])

Parameters

cachename: Name of the cache region that needs to be evicted.

Example

Evicts the data of all the queries from the default query cache.

<cfset ORMEvictQueries()>

Evicts the data of all the queries from the cache region with the name availableArtsCache.

<cfset ORMEvictQueries("availableArtsCache")>