You can store the data in your own datasource, and retrieve it with a query
and cache that.  Of course you'll need to code in some way of knowing when
to get new data to put into the datasource...

David Schmidt


----- Original Message -----
From: "Jeff Fongemie" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, January 25, 2002 5:44 AM
Subject: Can I somehow cache the results from a custom tag??


> Friday, January 25, 2002, 8:38:39 AM
> Hello CF-Talk,
>
>   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?
>
>
>
>
> Best regards,
>  Jeff Fongemie                          mailto:[EMAIL PROTECTED]
> ------------------------
> 
______________________________________________________________________
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

Reply via email to