No commit activity in last 3 years
No release in over 3 years
Integrates Rails fragment caching with Fortitude.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.5.2, ~> 3.5
>= 1.3.12, ~> 1.3

Runtime

~> 0.9.5
< 6.0, >= 4.0.0
 Project Readme

fortitude-caching

Integrates Rails fragment caching with Fortitude.

Usage

  1. include Fortitude::Caching in your base widget class.
  2. Call cacheable for widgets that you want cached.

By using fortitude-caching, this:

class Views::Pages::Show < Views::Base
  needs :page

  cacheable

  def content
    ...
  end
end

Is the equivalent of this:

class Views::Pages::Show < Views::Base
  needs :page

  def content
    cache(page) do
      ...
    end
  end
end

License

MIT