nickpad / rails-caches-action-patch

Add per-store options to caches_action in Rails 2.1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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, 2.1.1 or 2.1.2.

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

About

Add per-store options to caches_action in Rails 2.1


Languages

Language:Ruby 100.0%