On Nov 24, 3:27 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > My point exactly. What if you have a gadget that scrapes data off a web > page, and that web page changes? Didn't this happen to you a week ago? :-) > The TTL-in-XML solution wouldn't have helped you then.
Oh, I agree. I'd love to have a full developer's interface to control caching and more. But a simple TTL mechanism seems like something Google might be more interested in implementing soon. Any solution would be great!! > Also, you're hammering the finance.google.com server because of the > millisecond cachebuster in your URL: > var furl = "http://finance.google.com/finance" + "?t=" + ((new > Date()).getTime()); > _IG_FetchContent( furl, function(str) { ... } ); This is a near-real-time financial gadget, so stale data would basically make it useless. Plus, I assume that finance.google.com gets way more hits than my 12,000 gadget users are creating. I hope :) > This is forcing IG to hit finance.google.com and load a fresh copy of that > page every time your gadget is loaded, or reloaded on your timer. There's > essentially no caching among multiple users because of this. I could reduce it down to just seconds rather than milliseconds, but I can't go much further than that. I did a quick survey of what people have their refresh interval set to (using analytics) and I found that some have it set all the way down to 3 seconds! Unfortunately since Google doesn't have an applet that delivers this kind of information as people want it, and they don't have an API to call, my gadget fills the void nicely. I hope they don't mind ;) (And it looks like it's back up and working again, not sure why it stopped for a while) Matt Kruse --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iGoogle Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Gadgets-API?hl=en -~----------~----~----~----~------~----~------~--~---
