Response Cache
Overview
response_cache is the route-local plugin for reusing exact or semantically
compatible prior responses.
Key Advantages
- Reuses prior responses only on routes that benefit from cache hits.
- Keeps route-local thresholds separate from global store setup.
- Supports different cache policies for different routes.
What Problem Does It Solve?
Some routes benefit strongly from reuse, while others need fresh generation
every time. response_cache keeps the reuse policy local to the route.
When to Use
- one route should prefer cached responses when queries are very similar
- different routes need different similarity thresholds or TTLs
- the route should use a cache backend configured in
global.stores.response_cache