> I'm using a custom tag, called FreeData_NWS by Jim at > Depressed Press. It goes to the national Weather Service, > gets some weather data and gives them as variables. Works > slick! > > I'm trying to display the temperature on every page, and if > I call this tag on every page, I get a real performance hit > since the NWS is pretty slow in giving its data. > > Is there a good way, that I can somehow cache the returned > variables? > > Then on each page, just check if the variable exists before I > cfmodule the tag? > > Then if I do set them as variables, can I get them to timeout?
The short answer is yes, you can certainly save what the custom tag returns. The longer answer is that I don't know what the best way to do this would be, because I haven't worked with the custom tag. What exactly does it return? Or, does it simply output HTML to the page? If it returns some variables to the calling page, you could cache those variables in a persistent scope, or write them to a database. If it generates HTML output, you could use the CFSAVECONTENT tag in CF 5 to cache that output, or you could use a custom tag in CF 4.x to do the same thing. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ Why Share? Dedicated Win 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=coldfusionc 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

