Use Jekyll::Cache to cache template

This commit is contained in:
Pat Hawks 2018-08-05 11:55:29 -05:00
parent 82204a6e31
commit 0531f19410
1 changed files with 3 additions and 1 deletions

View File

@ -72,7 +72,9 @@ module Jekyll
class << self
def template
@template ||= Liquid::Template.parse template_contents
@template ||= Jekyll::Cache.new("jekyll-seo-tag").getset("template") do
Liquid::Template.parse template_contents
end
end
private