I’ve been working on extending CF with a few Java utilities and came across a rather frustrating problem. Whenever I need to test a change in the CFX I have to restart the CF application server. Using ColdFusion MX 7, this process can take up to half a minute…..not the ideal development scenario.
So I discovered an attribute that I had read about in the past but have never put it to work. The attribute is called “reload” and I set the value to “always”. Therefore the call to the custom tag looks like:
<CFX_WEATHER zip=”75214″ reload=”always”>
This should only be done in a development environment as there is performance degradation in loading the class each time. Once you go to a production environment be sure to remove the attribute which will default to auto. This means the class will only be reloaded if it or a dependent class is changed.