Sha256: 95636d2fb63f8404e03cb54507bfb6b00195b9e559721a38b8778308da9b591d
Contents?: true
Size: 671 Bytes
Versions: 2
Compression:
Stored size: 671 Bytes
Contents
# Frozen-string-literal: true # Copyright: 2012 - 2016 - MIT License # Encoding: utf-8 Jekyll::Assets::Hook.register :env, :init do cache = asset_config.fetch("cache", ".asset-cache") type = asset_config.fetch("cache_type", "filesystem" ) if cache != false && type != "memory" self.cache = begin Sprockets::Cache::FileStore.new( jekyll.in_source_dir( cache ) ) end elsif cache && type == "memory" self.cache = begin Sprockets::Cache::MemoryStore.new end else Jekyll.logger.info "", "Caching disabled however, " \ "if you use proxies it could still possibly be created." end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-assets-2.2.7 | lib/jekyll/assets/hooks/cache.rb |
jekyll-assets-2.2.6 | lib/jekyll/assets/hooks/cache.rb |