|
Note: This function has been enhanced in ColdFusion 9.0.1
to support multiple data sources in the same application. Install
the ColdFusion 9 update to use the feature.
DescriptionThis 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.
SyntaxORMEvictQueries([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.
|
ExampleEvicts 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")>
|
|
|