module JekyllIncludeCache

Jekyll 4.x comptable caching class for pre-4.x compatability

Constants

VERSION

Public Class Methods

cache() click to toggle source
# File lib/jekyll-include-cache.rb, line 10
def cache
  @cache ||= if defined? Jekyll::Cache
               Jekyll::Cache.new(self.class.name)
             else
               JekyllIncludeCache::Cache.new
             end
end
reset() click to toggle source
# File lib/jekyll-include-cache.rb, line 18
def reset
  JekyllIncludeCache.cache.clear
end