0.0
No commit activity in last 3 years
No release in over 3 years
Caching for Jekyll
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Code Climate Code Climate Travis branch Donate Gem

Jekyll Cache

Jekyll Cache provides a wrapper around ActiveSupport::Cache that allows you to cache in Jekyll without much trouble. It defaults to .jekyll-cache for the cache and allows you to namespace your cache directory so you do not interfere with other caches.

Usage

cache = Jekyll::Cache::FileStore.new("myCache")
cache.fetch "key" do
  "val"
end

# Force Expirey
# Useful for development wrapping.
cache.fetch "key", :expires_in => 0.minutes do
  "val"
end

We also provide a global cache.

Jekyll.cache.fetch "key" do
  "val"
end