Well, I don't know the Ben Code of which you speak, but here's what I would do:
* Use an application-scope variable for the dropdown * In application.cfm, check for existence of this variable; if it exists, do nothing * otherwise, run a cfsavecontent block and save that as the application scope variable. * Call the variable wherever you need it. Of course, there's more than one way to skin a (virtual) cat. Pete ----- Original Message ----- From: "Ian Lurie" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, November 01, 2002 11:29 AM Subject: Performance Tweaking - Friday Morning Brain Fart > Hi all, > > I've done this before but am having a post-halloween party moment: > > 1. I have a chunk of code that generates a drop-down menu. The menu's used > again and again on a page. > > 2. I want to generate that code once, insert it into a variable, and then > reuse it. That'll shave a LOT of time off the page execution time. > > I dimly remember an article by Ben Forta (I think) about this - can someone > refresh my sugar-addled brain? > > Thanks, > > Ian > > -- > Portent Interactive > Effective web sites through Conversation Marketing > http://www.portentinteractive.com > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.