RE: CFHTTP and Caching

2007-12-28 Thread Ian Vaughan
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 WEA

RE: CFHTTP and Caching

2007-12-24 Thread Dan G. Switzer, II
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)

CFHTTP and Caching

2007-12-24 Thread Ian Vaughan
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

RE: CFHTTP and Caching

2007-12-20 Thread Ian Vaughan
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" resol

Re: CFHTTP and Caching

2007-12-19 Thread Tom Chiverton
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

RE: CFHTTP and Caching

2007-12-19 Thread Ian Vaughan
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

Re: CFHTTP and Caching

2007-12-19 Thread Tom Chiverton
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://th

RE: CFHTTP and Caching

2007-12-19 Thread Ian Vaughan
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 *

Re: CFHTTP and Caching

2007-12-18 Thread Tom Chiverton
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

RE: CFHTTP and Caching

2007-12-18 Thread Ian Vaughan
27;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 f

RE: CFHTTP and Caching

2007-12-14 Thread Paul Vernon
> 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

Re: CFHTTP and Caching

2007-12-13 Thread Dave Anderson
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 t

RE: CFHTTP and Caching

2007-12-13 Thread Ian Vaughan
TP 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

RE: CFHTTP and Caching

2007-12-13 Thread Russ
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 cachedwi

Re: CFHTTP and Caching

2007-12-13 Thread Tom Chiverton
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://thef

RE: CFHTTP and Caching

2007-12-13 Thread Ian Vaughan
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 R

Re: CFHTTP and Caching

2007-12-13 Thread Todd
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. > > ht

CFHTTP and Caching

2007-12-13 Thread Ian Vaughan
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