Seems like somebody turned on caching in Shindig, which makes Gadget
development a little more difficult.
So, I'm trying to figure out how to turn if off for debugging and I've
made a couple of changes to ensure that the URL used to call the
Gadget server has the nocache=1 flag. That didn't work and I still get
a cached gadget, so I started tracing through the code an I came upon
this:
CachedContentFetcher.java:
public RemoteContent fetch(RemoteContentRequest request)
throws GadgetException {
RemoteContent result = cache.get(request.getUri());
if (result == null) {
result = nextFetcher.fetch(request);
synchronized (cache) {
cache.put(request.getUri(),result);
}
}
return result;
}
Do we need a call like this at the start of that method:
if (request.getOptions().ignoreCache) return nextFetcher.fetch(request);
- Dave