Forum: Rails-core (closed, excessive spam) caches_action accepts store_options such as :expires_in

Posted by José Valim (josevalim)
on 2008-06-14 10:57
(Received via mailing list)
Then we will be able to do:

  class ProjectsController < ActionController::Base
    caches_action :show, :expires_in => 1.hour
  end

This is useful if you are using memcached.

Patch attached with tests included here:

http://rails.lighthouseapp.com/projects/8994-ruby-...

---
José Valim
http://www.pagestacker.com
http://josevalim.blogspot.com
This topic is locked and can not be replied to.