A way to skip the render process of all displayed entities.
For a project, we needed a caching solution which is not time-based and deals with logged in users. So we can't use Varnish and the caching methods of Views and Panels.
During the developement we built a module called Display Cache.
An entity, which does not change, does not need to render again and again.
So we provide a wrapper function, which calls entity_view() and drupal_render() and caches the result.
Next time the function is called, just the cached html will be returned.
Every time an entity changes in any way, the cache entries for this entity will be flushed.
Views and Panels integration
We always use Panels and Views in our projects, so the next step was to provide plugins for ctools and views. These plugins call the wrapper function.
With the combination of the wrapper function and the plugins we were able to skip the render process of all entites.
So, what is your opinion?
I created a sandbox project with a little more explanation: http://drupal.org/sandbox/Caseledde/1970904