Cache converter in renderer (#7183)

Merge pull request 7183
This commit is contained in:
Pat Hawks 2018-10-02 03:16:49 -05:00 committed by jekyllbot
parent 0b90e536ab
commit b8dfc9a32f
1 changed files with 11 additions and 9 deletions

View File

@ -96,6 +96,7 @@ module Jekyll
#
# Returns String the converted content.
def convert(content)
Jekyll::Cache.new("Jekyll::Renderer").getset(content) do
converters.reduce(content) do |output, converter|
begin
converter.convert output
@ -108,6 +109,7 @@ module Jekyll
end
end
end
end
# Render the given content with the payload and info
#