Hi Paul Thanks I have tried the following where it should cache the feed in the application.cfm page every 20 minutes but I am getting the error
Error Occurred While Processing Request Element TIMESTAMP is undefined in APPLICATION. Any ideas on where I am going wrong ? --- In my application.cfm <CFIF (APPLICATION.TimeStamp EQ "") OR (DateDiff("n", APPLICATION.TimeStamp, TimeFormat(NOW(), "hh:mm:s")) GT 20)> <CFSET APPLICATION.TimeStamp = CreateTime(TimeFormat(NOW(), "hh"), TimeFormat(NOW(), "mm"), TimeFormat(NOW(), "s"))> <CFSET APPLICATION.weather_xml =XMLParse(cfhttp.FileContent)> <cfhttp url="http://feeds.bbc.co.uk/weather/feeds/rss/5day/world/0008.xml" method="GET" resolveurl="No"></cfhttp> </CFIF> In my display page I have the following code <cfoutput> <img src="#application.weather_xml.rss.channel.image.url.xmlText#" alt="#application.weather_xml.rss.channel.item.DESCRIPTION.xmlText#"> <cfloop index="x" from="1" to="#ArrayLen(application.weather_xml.rss.channel.item)#"> <br> #replace(application.weather_xml.rss.channel.item[x].title.xmlText, ',', '<br>', 'ALL')# <br> </cfloop> </cfoutput> -----Original Message----- From: Paul Vernon [mailto:[EMAIL PROTECTED] Sent: 13 December 2007 15:07 To: CF-Talk Subject: RE: CFHTTP and Caching > However what can I use in Coldfusion to cache this CFHTTP request > (every > 2 hours)so that it does not request the RSS feed every time a user > loads > our webpage? > > Any ideas if this is possible ? We do this all the time, here are a couple of possibilities... Save the RSS feed to the DB or the application scope or somewhere reasonably persistent with a date of last retrieval associated with it. Then when x hours have elapsed get the data again. For the most part, you'll be using the DB or application scope to access the RSS feed... Paul ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294986 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4