A bit of caching in the page_renderer

This commit is contained in:
Alexey Verkhovsky 2005-09-27 05:26:19 +00:00
parent 9816c395c5
commit 5447b82ed9

View file

@ -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