From 0531f19410dae175f0b5ca26addba20f3d5a464c Mon Sep 17 00:00:00 2001 From: Pat Hawks Date: Sun, 5 Aug 2018 11:55:29 -0500 Subject: [PATCH] Use Jekyll::Cache to cache template --- lib/jekyll-seo-tag.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/jekyll-seo-tag.rb b/lib/jekyll-seo-tag.rb index f56b8ee..94d9d01 100644 --- a/lib/jekyll-seo-tag.rb +++ b/lib/jekyll-seo-tag.rb @@ -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