From d1926f5494ed085f2a462bce2b1682ac44a9f433 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Mon, 11 Nov 2013 19:07:31 -0300 Subject: [PATCH] Cache theme renderings --- app/helpers/application_helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7ab3323..e928f9f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -433,19 +433,19 @@ module ApplicationHelper end def theme_site_title - theme_include('site_title') + @theme_site_title ||= theme_include 'site_title' end def theme_header - theme_include('header') + @theme_header ||= theme_include 'header' end def theme_footer - theme_include('footer') + @theme_footer ||= theme_include 'footer' end def theme_extra_navigation - theme_include('navigation') + @theme_extra_navigation ||= theme_include 'navigation' end def is_testing_theme -- libgit2 0.21.2