Compilation Without Execution

The first time any CFM file is processed it must be compiled into pcode, and if there is sufficient space available in the template cache that pcode may be cached to prevent repeated unnecessary compilation (which could take longer than actual code processing). The undocumented tag can be used to force the manual pcode compilation code of ColdFusion files without actually executing them (allowing you to compile all files before they are even used). To do this you must specify three attributes – ACTION should be set to “pcode”, TEMPLATEPATH must be the name of the file to compile, and OUTVAR must be the name of a variable to contain any error messages. (This tag can also be used to force breaks and memory leaks). (Applies to: ColdFusion 4.x and 5)

Leave a Reply