Plugins - Conditional Caching
Add to favoritesConditionalCache
==========
Read a tutorial for this plugin at http://weblog.redlinesoftware.com/2007/11/26/conditional-cache-plugin-tutorial
Updates
Jul. 02, 2008 Updated to work with rails 2.1 Removed the :if option since Rails now provides this functionality.
Dec. 13, 2007 Updated to work with rails 2.0.1
Oct. 12, 2007 Updated to work with rails 1.2.4
Provides additional options for the caches_action method.
:if - Specifies a method, proc or string to call to determine if the caching should occur. The method, proc or string should return or evaluate to a true or false value.
e.g.) :if => :allow_cache, or :if => Proc.new {|controller| controller.request.get?}
:tag - Specifies a method, proc or string to call in order to add an additional tag to the cache fragment so that various states of caching can occur within the application. The method, proc or string should return or evaluate to a string. The tag (string) is appended to the end of the cache key so use expire_fragment with a regex to safely expire actions that use the :tag option.
e.g.) :tag => Proc.new { |controller| controller.user_type.to_s } # This will cache the page dependant on the type of user logged in.
http://www.redlinesoftware.com
http://svn.redlinesoftware.com/plugins/conditional_cache
Rails' (MIT)
Controllers

Please, update it to rails 2.1