7 messages in com.googlegroups.google-gadgets-apiRe: Update: _IG_FetchFeedAsJSON() doe...
FromSent OnAttachments
Dann (Google Employee)03 Aug 2007 01:04 
citrine29 Aug 2007 12:18 
Dann (Google Employee)29 Aug 2007 13:11 
citrine30 Aug 2007 06:21 
Dann (Google Employee)30 Aug 2007 09:53 
jinu...@googlemail.com29 Oct 2007 07:32 
Jerome (Guru)30 Oct 2007 08:45 
Subject:Re: Update: _IG_FetchFeedAsJSON() does *not* support refreshInterval
From:Dann (Google Employee) (d.@google.com)
Date:08/29/2007 01:11:16 PM
List:com.googlegroups.google-gadgets-api

Hey citrine,

The FetchFeedAsJSON() method should be refreshing itself once every 1-2 hours. If it's not, then there might be a problem. Let me investigate this a little further and get back to you.

Thanks for posting!

Dann

On Aug 29, 12:18 pm, citrine <soni@nc.rr.com> wrote:

Does the _IG_FetchFeedAsJSON() method really refresh every couple of hours?

It doesn't seem to be refreshing for me at all today; I updated my blog (my feed source) this morning and its been at least 4 hours... (Not that my gadet is popular and this is of vital importance or anything, but it may never be used at all if people try it and it doesn't look like I've been updating it regularly.)

I like the JSON method since it I'm not a javascript programmer & it is much easier to understand.

Thanks.

On Aug 3, 4:04 am, "Dann (Google Employee)" <d.@google.com> wrote:

Hey everyone,

Sorry to bring some bad news, but we recently discovered that the refreshInterval parameter is not supported in the _IG_FetchFeedAsJSON() method. It won't throw an error if you pass it in, but the feed won't honor the refresh interval value you specified. This means there currently is no mechanism to override the default caching behavior on feeds that are fetched through this method.

The other two fetch methods do support refreshInterval: _IG_FetchContent() and _IG_FetchXmlContent().

If you really need to specify a shorter cache expiration on feeds, I'd recommend using the _IG_FetchXmlContent() method instead. Once retrieved, you'll need to iterate through the nodes manually in your JavaScript. For some ideas on how to do this, check out some of these gadgets:

Sorry for the inconvenience. We'll look into ways to make this available in the future. In the meantime, hopefully this clears up some confusion as to why feeds were not being updated based on the refreshInterval.

Let us know if you have any comments/feedback/questions.

Thanks!

Dann