Whatever message this page gives is out now! Go check it out!

ORMEvictQueries

Last update:
May 18, 2026

Description

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

Category

See Also

ORMEvictEntityORMEvictCollectionEvict content from secondary cache in Caching in the Developing ColdFusion Applications

Syntax

ORMEvictQueries(cachename) ORMEvictQueries(cachename, datasource)

Parameters

Parameter
Description
cachename
Name of the cache region that you want to evict.
datasource
Name of the data source whose cache you want to evict. If you do not specify the cache, the default query cache is 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")>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page