Why not generate the code, write it down to a flat file and then CFINCLUDE it? I do that with parts of the list archives and it's fast as hell. With the information stored in a variable (a memory scope would be needed) you have to reload it every time the CF server restarts. With a flat file, it stays forever till you rebuild it yourself.
> 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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm