RE: CFHTTP and Caching
Hi Dan Thanks for that - it seems to be working fine. So this will now cache the RSS feed to the application scope for 20 mins, so the CFHTTP tag does not need to go out to the Internet within the 20 minute timeframe as the data from the feed is cached? -Original Message- From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] Sent: 24 December 2007 12:43 To: CF-Talk Subject: RE: CFHTTP and Caching Ian, >This is the error I am getting below even though weather_xml has been >defined in the application.cfm page > >i.e. > >ERROR IS > >Element WEATHER_XML is undefined in APPLICATION. > > >My application.cfm page is > > > > >APPLICATION.TimeStamp, TimeFormat(NOW(), "hh:mm:s")) GT 20)> APPLICATION.TimeStamp = CreateTime(TimeFormat(NOW(), "hh"), >TimeFormat(NOW(), "mm"), TimeFormat(NOW(), "s"))> > >http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/3314.xml"; >method="GET" resolveurl="No"> > > > The way that logic reads, the Application.TimeStamp will always be "less than" 20 the first time the application is loaded--so your CFHTTP tag will never run. Change the code to something like: http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/3314.xml"; method="GET" resolveurl="No"> There's no need to convert your Application.TimeStamp variable to any specific formatting--you can just set it to now(). -Dan ~| 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:295476 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFHTTP and Caching
Ian, >This is the error I am getting below even though weather_xml has been >defined in the application.cfm page > >i.e. > >ERROR IS > >Element WEATHER_XML is undefined in APPLICATION. > > >My application.cfm page is > > > > >APPLICATION.TimeStamp, TimeFormat(NOW(), "hh:mm:s")) GT 20)> APPLICATION.TimeStamp = CreateTime(TimeFormat(NOW(), "hh"), >TimeFormat(NOW(), "mm"), TimeFormat(NOW(), "s"))> > >http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/3314.xml"; >method="GET" resolveurl="No"> > > > The way that logic reads, the Application.TimeStamp will always be "less than" 20 the first time the application is loaded--so your CFHTTP tag will never run. Change the code to something like: http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/3314.xml"; method="GET" resolveurl="No"> There's no need to convert your Application.TimeStamp variable to any specific formatting--you can just set it to now(). -Dan ~| 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:295321 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CFHTTP and Caching
I am getting problems with CFHTTP and caching a RSS feed, I cant find out why I am getting the error below ?? Any ideas on what it can be ? This is the error I am getting below even though weather_xml has been defined in the application.cfm page i.e. ERROR IS Element WEATHER_XML is undefined in APPLICATION. My application.cfm page is http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/3314.xml"; method="GET" resolveurl="No"> My weather page is #replace(application.weather_xml.rss.channel.item[x].title.xmlText, ',', '', 'ALL')# ~| 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:295317 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFHTTP and Caching
This is the error I am getting below even though weather_xml has been defined in the application.cfm page i.e. ERROR IS Element WEATHER_XML is undefined in APPLICATION. My application.cfm page is http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/3314.xml"; method="GET" resolveurl="No"> My weather page is #replace(application.weather_xml.rss.channel.item[x].title.xmlText, ',', '', 'ALL')# ~| 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:295169 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFHTTP and Caching
On Wednesday 19 Dec 2007, Ian Vaughan wrote: > I have added the following but I am getting this error even though I > have defined this in my application.cfm page Did you wait 20 minutes (or whatever your DateDiff interval is) ? -- Tom Chiverton Helping to autoschediastically supply value-added channels on: http://thefalken.livejournal.com Halliwells wishes all of its clients and suppliers the Very Best for Christmas & the New Year This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| 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:295100 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFHTTP and Caching
I have added the following but I am getting this error even though I have defined this in my application.cfm page Element WEATHER_XML is undefined in APPLICATION. Application.cfm page -- http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/3314.xml"; method="GET" resolveurl="No"> -Original Message- From: Tom Chiverton [mailto:[EMAIL PROTECTED] Sent: 19 December 2007 11:37 To: CF-Talk Subject: Re: CFHTTP and Caching On Wednesday 19 Dec 2007, Ian Vaughan wrote: > Where would structkeyexists go in the application.cfm page ? Round about where you check for application.foo's value, without checking foo exists in application. -- Tom Chiverton Helping to administratively deploy guinine environments on: http://thefalken.livejournal.com Halliwells wishes all of its clients and suppliers the Very Best for Christmas & the New Year This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| 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:295098 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFHTTP and Caching
On Wednesday 19 Dec 2007, Ian Vaughan wrote: > Where would structkeyexists go in the application.cfm page ? Round about where you check for application.foo's value, without checking foo exists in application. -- Tom Chiverton Helping to administratively deploy guinine environments on: http://thefalken.livejournal.com Halliwells wishes all of its clients and suppliers the Very Best for Christmas & the New Year This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| 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:295089 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFHTTP and Caching
Where would structkeyexists go in the application.cfm page ? http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/3314.xml"; method="GET" resolveurl="No"> -Original Message- From: Tom Chiverton [mailto:[EMAIL PROTECTED] Sent: 18 December 2007 11:59 To: CF-Talk Subject: Re: CFHTTP and Caching On Tuesday 18 Dec 2007, Ian Vaughan wrote: > Any ideas on where I am going wrong ? structKeyExists() or similar -- Tom Chiverton Helping to conveniently synthesize enterprise niches on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| 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:295085 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFHTTP and Caching
On Tuesday 18 Dec 2007, Ian Vaughan wrote: > Any ideas on where I am going wrong ? structKeyExists() or similar -- Tom Chiverton Helping to conveniently synthesize enterprise niches on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| 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:294988 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFHTTP and Caching
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 http://feeds.bbc.co.uk/weather/feeds/rss/5day/world/0008.xml"; method="GET" resolveurl="No"> In my display page I have the following code #replace(application.weather_xml.rss.channel.item[x].title.xmlText, ',', '', 'ALL')# -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
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:294760 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFHTTP and Caching
Putting the result in the application scope is a good idea. Just do something like: Then refer elsewhere in your code to application.myRSSdata rather than cfhttp.filecontent or whatever you were using for a result variable. >I have tried the cachedwithin="#CreateTimeSpan(0,3,0,0)#" at the end of >the CFHTTP tag and got the following error > >Attribute validation error for tag http. >The tag does not have an attribute called cachedwithin. The valid >attribute(s) are url, port, method, username, password, name, columns, >charset, path, file, delimiter, textqualifier, resolveurl, proxyserver, >proxyport, proxyUser, proxyPassword, useragent, throwonerror, redirect, >firstRowAsHeaders, timeout, multipart, getAsBinary, result. > > >From the above and the docs I cant see any reference on how to cache the >CFHTTP request in the code ? > > > >> Could I just use cachedwithin="#CreateTimeSpan(0,3,0,0)#" on the end >of >> the CFHTTP statement ? > >Have you tried ? >What happened ? >Did you consult the documentation ? > >-- >Tom Chiverton >Helping to economically brand exceptional e-markets >on: http://thefalken.livejournal.com > > > >This email is sent for and on behalf of Halliwells LLP. > >Halliwells LLP is a limited liability partnership registered in England >and Wales under registered number OC307980 whose registered office >address is at Halliwells LLP, 3 Hardman Square, Spinningfields, >Manchester, M3 3EB. A list of members is available for inspection at >the registered office. Any reference to a partner in relation to >Halliwells LLP means a member of Halliwells LLP. Regulated by The >Solicitors Regulation Authority. > >CONFIDENTIALITY > >This email is intended only for the use of the addressee named above and >may be confidential or legally privileged. If you are not the addressee >you must not read it and must not use any information contained in nor >copy it nor inform any person other than Halliwells LLP or the addressee >of its existence or contents. If you have received this email in error >please delete it and notify Halliwells LLP IT Department on 0870 365 >2500. > >For more information about Halliwells LLP visit www.halliwells.com. ~| 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:294717 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFHTTP and Caching
I have tried the cachedwithin="#CreateTimeSpan(0,3,0,0)#" at the end of the CFHTTP tag and got the following error Attribute validation error for tag http. The tag does not have an attribute called cachedwithin. The valid attribute(s) are url, port, method, username, password, name, columns, charset, path, file, delimiter, textqualifier, resolveurl, proxyserver, proxyport, proxyUser, proxyPassword, useragent, throwonerror, redirect, firstRowAsHeaders, timeout, multipart, getAsBinary, result. >From the above and the docs I cant see any reference on how to cache the CFHTTP request in the code ? -Original Message- From: Tom Chiverton [mailto:[EMAIL PROTECTED] Sent: 13 December 2007 15:17 To: CF-Talk Subject: Re: CFHTTP and Caching On Thursday 13 Dec 2007, Ian Vaughan wrote: > Could I just use cachedwithin="#CreateTimeSpan(0,3,0,0)#" on the end of > the CFHTTP statement ? Have you tried ? What happened ? Did you consult the documentation ? -- Tom Chiverton Helping to economically brand exceptional e-markets on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| 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:294694 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFHTTP and Caching
Just use cf_accelerate. It does all the heavy lifting for you. Russ > -Original Message- > From: Ian Vaughan [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 13, 2007 10:02 AM > To: CF-Talk > Subject: RE: CFHTTP and Caching > > Could I just use cachedwithin="#CreateTimeSpan(0,3,0,0)#" on the end of > the CFHTTP statement ? > > If this cannot be done how do I dump the result in the application > scope? > > -Original Message- > From: Todd [mailto:[EMAIL PROTECTED] > Sent: 13 December 2007 14:51 > To: CF-Talk > Subject: Re: CFHTTP and Caching > > Use a schedule task to dump the result in the application scope? Every > 3 > hours or so, go get a new version of the xml? How do you want this to > be > done? > > On Dec 13, 2007 9:44 AM, Ian Vaughan <[EMAIL PROTECTED]> > wrote: > > > Hi > > > > I am using CFHTTP to get an RSS feed to display on our website. > > > > url="http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/2315.xml"; > > method="GET" resolveurl="No" > > > > 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 ? > > > > > > > ~| 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:294692 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFHTTP and Caching
On Thursday 13 Dec 2007, Ian Vaughan wrote: > Could I just use cachedwithin="#CreateTimeSpan(0,3,0,0)#" on the end of > the CFHTTP statement ? Have you tried ? What happened ? Did you consult the documentation ? -- Tom Chiverton Helping to economically brand exceptional e-markets on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| 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:294691 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFHTTP and Caching
Could I just use cachedwithin="#CreateTimeSpan(0,3,0,0)#" on the end of the CFHTTP statement ? If this cannot be done how do I dump the result in the application scope? -Original Message- From: Todd [mailto:[EMAIL PROTECTED] Sent: 13 December 2007 14:51 To: CF-Talk Subject: Re: CFHTTP and Caching Use a schedule task to dump the result in the application scope? Every 3 hours or so, go get a new version of the xml? How do you want this to be done? On Dec 13, 2007 9:44 AM, Ian Vaughan <[EMAIL PROTECTED]> wrote: > Hi > > I am using CFHTTP to get an RSS feed to display on our website. > > http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/2315.xml"; > method="GET" resolveurl="No" > > 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 ? > ~| 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:294689 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFHTTP and Caching
Use a schedule task to dump the result in the application scope? Every 3 hours or so, go get a new version of the xml? How do you want this to be done? On Dec 13, 2007 9:44 AM, Ian Vaughan <[EMAIL PROTECTED]> wrote: > Hi > > I am using CFHTTP to get an RSS feed to display on our website. > > http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/2315.xml"; > method="GET" resolveurl="No" > > 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 ? > ~| 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:294686 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CFHTTP and Caching
Hi I am using CFHTTP to get an RSS feed to display on our website. http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/2315.xml"; method="GET" resolveurl="No" 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 ? ~| 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:294685 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4