Use Jekyll::Cache to cache template
This commit is contained in:
parent
82204a6e31
commit
0531f19410
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue