Hi Jason I agree with what Alex says (and not just the bit about it being OK to use <cfinclude>).
However it sounds to me like your function is doing too much, and could stand some decomposition. That's perhaps where I'd focus my attentions in this case. -- Adam On Thursday, November 29, 2012 9:50:09 PM UTC, Jason Allen wrote: > > Hey Guys, > > I'm curious about the best practices in regards to using cfinclude > statements in a CFC function. > > I'm seeing mixed opinions as I google the subject. I have a particular > function that includes a script that is lenghty, and if I place the script > within the CFC function declaration it triples the size of the CFC. I'd > rather keep the script as a separate document, and just cfinclude it within > the function declaration. Nothing in the script needs/will be cached, so > that's not an issue. > > Thoughts? > > > -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en
