This project is archived and is in readonly mode.
caches_actions accepts cache_store options such as :expires_in
Reported by José Valim | June 14th, 2008 @ 09:53 AM
With this tiny path, 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.
Tests included (just an expectation to check if options are being sent).
Comments and changes to this ticket
-
Repository July 4th, 2008 @ 02:13 AM
- State changed from new to resolved
(from [bad1eac91d1549631dca8e93e7e846911649acf7]) Allow caches_action to accept cache store options. [#416 state:resolved]
Signed-off-by: Pratik Naik
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>