I'm in the process of upgrading a large legacy ColdFusion application that heavily utilizes Application.cfm
template files instead of the newer Application.cfc
files.
It seems that Application.cfc
offer a cleaner more efficient solution to everything that a Application.cfm file can do.
- An
Application.cfm
runs every line sequentially for every request, so it would recreate application variables on every subsequent new page query. (Can cause performance hit if many application variables loaded)The Application.cfc
allows for certain truely global variables to avoid getting recreated with theonApplicationStart()
andonRequestStart()
method
Has anyone come across any use cases/examples(apart from the obvious time it takes to port) where Application.cfm
pages are preferable to Application.cfc