Hi,
I was just wondering if there is some component to instead of let the a
given component to render itself, check if there is a cache and display its
rendered markup, thus avoiding unnecessary rendering, this could be useful
for stateless components that need to display some list of categories from
the database etc.
Something like this:
class Header extends Panel{
add(new ExpensiveCategoryListView());
}
class Home extends Page{
add(new CachedComponent("headerContainer", Header.class))
}
The CachedComponent would first check if there is an already rendered
Header instance (could check in an in-memory store like, infinispan or
hezelcast)
What do you guys think?