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, OpenBD, etc.

ormIndexPurge Argument Reference

region
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'); 

Fork me on GitHub