Cache the rendering of parent templates