lib/jekyll/assets/hooks/cache.rb in jekyll-assets-2.3.2 vs lib/jekyll/assets/hooks/cache.rb in jekyll-assets-2.4.0
- old
+ new
@@ -7,21 +7,13 @@
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
+ self.cache = Sprockets::Cache::FileStore.new(cache_path)
elsif cache && type == "memory"
- self.cache = begin
- Sprockets::Cache::MemoryStore.new
- end
+ 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