Or if you really just need it cached to a file use cf_accelerate or similar code. I have a modified version of it caching 200,000 + files. Of course you need a nested directory structure for that but it works very well.
The cache code can be found here: http://www.bpurcell.org/blog/index.cfm?mode=entry&entry=963 You could even have this save out the full page and not just a nugget. Then have another script that opens page after page (using meta refresh) and get em all cached that way. Joshua Cyr Savvy Software 866.870.6358 www.besavvy.com -----Original Message----- From: Casey Dougall [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 2:20 PM To: CF-Talk Subject: Re: convert cfm to static html On 11/9/06, Josh Nathanson <[EMAIL PROTECTED]> wrote: > Loop over your db pages, use CFHTTP to output the file content, then > do a CFFILE to write it to disk. > > -- Josh > Id's do something like this where you just write files somewhere on your server after saving the data in a cfsavecontent <cfloop query "rsQuery"> <CFSET File = ""> <CFFILE Action="Write" File=thefile#rsQuery.RecordID#.html" Output="#File#"> <cfsavecontent variable="TheFile"> <table> <tr><td> #rsQueryGOODS# </td></tr> </table> </cfsavecontent> <cffile action="APPEND" File=thefile#rsQuery.RecordID#.html" output="#TheFile# " addnewline="Yes"> </cfloop> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259800 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4