Use an internal sequence instead of object_id for an ID of a chunk [Denis Mertz]

This commit is contained in:
Alexey Verkhovsky 2005-03-31 02:06:46 +00:00
parent 4850e59d18
commit 0dabfca465
4 changed files with 57 additions and 32 deletions

View file

@ -88,11 +88,15 @@ class Revision
end
def clear_display_cache
@wiki_references_cache = @wiki_includes = @display_cache = nil
@wiki_references_cache = @published_cache = @display_cache = nil
@wiki_includes_cache = nil
end
def display_published
@published_cache = WikiContent.new(self, {:mode => :publish}) if @published_cache.nil?
unless @published_cache && @published_cache.respond_to?(:chunks_by_type)
@published_cache = WikiContent.new(self, {:mode => :publish})
@published_cache.render!
end
@published_cache
end