nickpad / rails-caches-action-patch

Add per-store options to caches_action in Rails 2.1

This URL has Read+Write access

rails-caches-action-patch / README.markdown
100644 24 lines (15 sloc) 0.68 kb

Rails caches_action Plugin

This plugin applies a patch from Rails edge to ActionPack, which enables the use of cache-specific options from the caches_action method.

For example, you can specify :expires_in => 30 when using the MemCache cache store.

The patch will only be applied if the Rails version is 2.1.0.

The original git commit @ github

Compatibility

Only works with Rails 2.1. Versions greater than 2.1 should have this functionality built in.

Install

ruby script/plugin install git://github.com/nickpad/rails-caches-action-patch.git