9 messages in com.googlegroups.google-gadgets-apiRe: _IG_FetchContent is it cahced ?
FromSent OnAttachments
realtebo21 Jan 2007 06:38 
api....@google.com21 Jan 2007 21:05 
realtebo22 Jan 2007 03:03 
RBarcelos24 Jan 2007 06:31 
Dann (Google Employee)24 Jan 2007 18:21 
Justin McConnell24 Jan 2007 18:35 
tjha...@gmail.com15 Feb 2007 20:45 
Dann (Google Employee)16 Feb 2007 17:38 
Nik3623 Feb 2007 01:04 
Subject:Re: _IG_FetchContent is it cahced ?
From:tjha...@gmail.com (tjha@gmail.com)
Date:02/15/2007 08:45:57 PM
List:com.googlegroups.google-gadgets-api

Dann, I've seen you post this before and it just didn't work for me. I tried disabling the cache every hour like you suggested, but at that hour, the feed items would go out of order for some reason. Also, in your example you call it var hourStamp, but then use just 'hour' in the FetchContent function. Is this a mistake?

On Jan 24, 6:36 pm, "Justin McConnell" <bool@gmail.com> wrote:

On Jan 24, 6:31 am, "RBarcelos" <rbar@gmail.com> wrote:> Hi,

did you find a way to disable it?

There is no extra parameter you can pass to the fetch functions that will alter or disable the caching. They just get the latest copy of the data that is located in the Google cache for that URL.

My gadget access a data source that is updated every 10 min. But as the _IG_FetchContent function is caching the data I never get the most recent data...

Pamela's suggestion is pretty much all you have to work with here -- add a random parameter to the query string so you can control the uniqueness of the URL.

You can do this really simply by getting a unique URL each and every page load: var url = "http://www.webserver.com/page?" + Math.random();

Or, something a little more elegant that refreshes after a set time: // make Google refresh the cache every x minutes, x being the last number on the next line -- in this case 5 minutes var buster = Math.floor((new Date()).getTime() / 1000 / 60 / 5); var url = "http://www.webserver.com/page?" + buster;

Best regards,

Rafael

On Jan 22, 7:03 am, "realtebo" <mirk@gmail.com> wrote:

api.@google.com ha scritto:

Add a random parameter on the end of your PHP string- e.g. &ignoredparam=984759 (use javascript rand to generate random number)

I believe there's one other solution, but that should work.Yes, I resolved with
this workaround, but it's a Google cache

wasting... Is there not a parameter to DISABLE it?

I understand that caching is VERY USEFULL when loading RSS feed, but NOT every time !