ormEvictQueries

This will remove all the queries from the named query cache. If name is not specified, all queries from default cache will be removed.

ormEvictQueries([cacheName, datasource]) → returns void

Argument Reference

cacheName string

Name of the cache region that you want to evict. If you do not specify the cache, the default query cache is evicted.

datasource string

Name of the data source whose cache you want to evict.

Examples
Sample code invoking the ormEvictQueries function

This will remove any cached queries from the default cache and cause the query to run again

ormEvictQueries();

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub