app/models/revision.rb in Pimki-1.5.092 vs app/models/revision.rb in Pimki-1.6.092
- old
+ new
@@ -78,11 +78,10 @@
def clear_display_cache
@display_cache = @published_cache = @wiki_words_cache = nil
end
def display_published
- @published_cache = WikiContent.new(self, {:mode => :publish}) if @published_cache.nil?
- @published_cache
+ @published_cache ||= WikiContent.new(self, {:mode => :publish})
end
def display_content_for_export
WikiContent.new(self, {:mode => :export} )
end