With a given route now able to return multiple formats (HTML, JSON, etc.) using the Accept header, the route cache needs to be reworked so a single route cache can store multiple formats:
The best approach is probably to only render and cache each format as it's requested. This will minimize CPU and memory usage, but will require modifying cache.exists(), cache.setRoute(), and cache.getRoute().
Need to think more about how this will work for controller caching. Probably similar to routes.
Route cache renderings are stored currently as their compression schemes:
With a given route now able to return multiple formats (HTML, JSON, etc.) using the Accept header, the route cache needs to be reworked so a single route cache can store multiple formats:
The best approach is probably to only render and cache each format as it's requested. This will minimize CPU and memory usage, but will require modifying
cache.exists()
,cache.setRoute()
, andcache.getRoute()
.Need to think more about how this will work for controller caching. Probably similar to routes.