This project is archived and is in readonly mode.

#416 ✓resolved
José Valim

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

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>

Attachments

Pages