Friday, September 16, 2011

A Grails GSP template caching system

Caching a whole rendered page is not always the best options, because some minor parts of the page can change from one user to another (e.g. login info).
In other situations, different perspectives can have common components and caching them can dramatically reduce page rendering time (typically a search results).
Inspired from the very good UiPerformance and springcache and based on ehCache, we propose an idea to go a bit further and cache either template rendering or a piece of gsp.

Sunday, September 11, 2011

A Grails template rendering profiler


A complex grails page if often a cascade of templates rendering, nested in each others.
Optimizing page views starts with profiling which template takes time and which template is called by which one.
We offer a capture mechanism of all calls and several rendering: call stack, template time summary, and a visual display of the call graph.