ormIndexPurge

Clears all indexed data for all entities or specified entities in the current application scope.

ormIndexPurge(); ormIndexPurge("entityName"); ormIndexPurge("entityName_list"); → returns void

This function requires Adobe ColdFusion 10 and up.  Not supported on Lucee, etc.

Argument Reference

region string
Required

Name of the cache region.

Examples
Sample code invoking the ormIndexPurge function

If you use this function without specifying entityName, all persistent entities of the application are purged.

ormIndexPurge(); 

ormIndexPurge('Employee'); 

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

Fork me on GitHub