Commit d1926f5494ed085f2a462bce2b1682ac44a9f433
1 parent
0085008d
Exists in
master
and in
27 other branches
Cache theme renderings
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
app/helpers/application_helper.rb
| ... | ... | @@ -433,19 +433,19 @@ module ApplicationHelper |
| 433 | 433 | end |
| 434 | 434 | |
| 435 | 435 | def theme_site_title |
| 436 | - theme_include('site_title') | |
| 436 | + @theme_site_title ||= theme_include 'site_title' | |
| 437 | 437 | end |
| 438 | 438 | |
| 439 | 439 | def theme_header |
| 440 | - theme_include('header') | |
| 440 | + @theme_header ||= theme_include 'header' | |
| 441 | 441 | end |
| 442 | 442 | |
| 443 | 443 | def theme_footer |
| 444 | - theme_include('footer') | |
| 444 | + @theme_footer ||= theme_include 'footer' | |
| 445 | 445 | end |
| 446 | 446 | |
| 447 | 447 | def theme_extra_navigation |
| 448 | - theme_include('navigation') | |
| 448 | + @theme_extra_navigation ||= theme_include 'navigation' | |
| 449 | 449 | end |
| 450 | 450 | |
| 451 | 451 | def is_testing_theme | ... | ... |