>Is there a technique that would allow me to force the Shindig cache to update >when I know it is necessary?
If makeRequest is hitting a server under your control, you can use the HTTP caching headers to dictate how long the response should be cached. If you use this approach, make sure the refresh_interval parameter is not set. On Tue, Dec 22, 2009 at 3:57 AM, Bruce Godden <[email protected]> wrote: > Hi, > > I am working on a set of gadgets which use some shared data which is fetched > using gadgets.io.makeRequest. I am using pubsub to pass messages between > gadgets to tell them that they need to fetch new data. My problem is that > Shindig is caching the data and so when it is refetched the old data is > fetched again instead of the new data. I can work around this by avoiding > caching (mostly) by setting the REFRESH_INTERVAL makeRequest parameter to a > small number like 1 (or other more severe cache busting tricks) but I would > actually like the data to be cached. Is there a technique that would allow me > to force the Shindig cache to update when I know it is necessary? > > By the way, what is supposed to be the effect of setting REFRESH_INTERVAL to > 0? My experience seems to show that it actually allows the data to be cached > for a significant time rather than disallowing it completely. Is this > expected? > > Bruce Godden > Oxford e-Research Centre > >

