A bit of caching in the page_renderer
This commit is contained in:
parent
9816c395c5
commit
5447b82ed9
|
@ -24,7 +24,7 @@ class PageRenderer
|
|||
end
|
||||
|
||||
def display_content
|
||||
render
|
||||
@display_content ||= render
|
||||
end
|
||||
|
||||
def display_content_for_export
|
||||
|
@ -32,7 +32,7 @@ class PageRenderer
|
|||
end
|
||||
|
||||
def display_published
|
||||
render :mode => :publish
|
||||
@display_published ||= render(:mode => :publish)
|
||||
end
|
||||
|
||||
def display_diff
|
||||
|
|
Loading…
Reference in a new issue