Sha256: 9af6dd13960140a8eed90893a39da291bfcb7caef4534244f17e56d898e77d6f
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 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 = Sprockets::Cache::FileStore.new(cache_path) elsif cache && type == "memory" self.cache = Sprockets::Cache::MemoryStore.new else Jekyll.logger.info "", "Asset caching is disabled by configuration. " \ "However, if you're using proxies, a cache might still be created." end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-assets-2.4.0 | lib/jekyll/assets/hooks/cache.rb |