Not only that, but CFINCLUDE includes the file out of the template cache and only checks the disk subsystem to see if it has changed (unless you are using a "trusted cache) - so it is basically pulling directly from memory, about as fast as you can get I'd say.
Mark -----Original Message----- From: Stephen Moretti [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 7:38 AM To: CF-Talk Subject: Re: cfinclude, who to pass for variables to? Steve, > You can't pass variables in a cfinclude, but you could use cfhttp, since > it's on the same server it should work just as fast as a cfinclude, and > you can pass variables in cfhttp. > No man! Its definitely not just as fast! cfinclude, just includes a file direct from the server at interpreting time (i.e.. when the template is called), where you can process the contents immediately using any variables available in the calling template. cfhttp will make a http connection back to the web server, which will connect to the cf server to pick up the template, interpret it, send the results back to the web server which then sends the results back to the template with the cfhttp in it, where you'll then have to process the cfhttp results. You don't need to pass variables into the cfinclude, because any variables that are available in the calling template are available in the included template as well. Its as if the code you've just included was there directly in the page. Regards Stephen ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

