I'm a bit confused about the configuration of caching in Java Shindig.

From what I can see, when a gadget render request is made the spec can come from three locations:
- In-memory gadget-spec cache.
- In-memory http reponse cache.
- The real http location.

By default the gadget and message bundle spec capacities are:

file: gadgets/conf/gadgets.properties:
gadget-spec.cache.capacity=0
message-bundle.cache.capacity=0

I've implemented an extra memcached layer on top of BasicHttpCache and I want to be sure that I understand the caching process completely.

Is it true that this effectively turns these two caches off, because whenever an element is added to the cache, it will be thrown out immediately because the size exceeds the capacity? In other words: is this the way to choose between http response caching OR just the gadget/messagebundle caching?

Some more documentation about the different places and ways of caching and configuration would be also be greatly appreciated. For instance, is there any place where the use of the client-side caching parameter version ("v=") is documented? Although it's a simple concept, I could only find it by digging through the code.

Thanks,

Marijn

Reply via email to