From curationexperts/chf-sufia#27 (comment):
Approaches for cache control:
- Use a marmotta-like configuration as started in: https://github.com/ActiveTriples/linked-data-fragments/tree/cache_config/config
- How can we support this kind of interface for other backends?
- Does marmotta's approach meet our requirements?
- Use HTTP Cache-Control headers.
- Create a static caching strategy that clients don't have control over.
- Will this paint us into a corner?
- Is there a one-size fits all caching strategy we can define?
In any of these three cases, questions that need to be answered include:
- What are the pre-warming needs?
- Do search needs for an authority require a full pre-load of that authority?
- Or can search be dependant on an external service?
- What happens when the cache "invalidates"?
- do we clear data from the backend,
- or simply require re-fetch on the next retrieval if the remote is available?
- What is an acceptable TTL?
- Does the client ever need to manually invalidate the cache?
I think that's the general shape of the problem.
From curationexperts/chf-sufia#27 (comment):