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.
ORMEvictEntity, ORMEvictCollection, Evict content from secondary cache in Caching in the Developing ColdFusion Applications
ORMEvictQueries(cachename) ORMEvictQueries(cachename, datasource)
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. |
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")>
Sign in to your account