Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

caches_actions accepts cache_store options such as :expires_in

#416

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).

Reported by José Valim · June 14th, 2008 @ 09:53 AM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. George Guimarães
    George Guimarães
    • Tag set to actionpack, patch, tested

    +1

    June 27th, 2008 @ 10:31 PM

  2. Hugo Barauna
  3. Repository
    Repository
    • State changed from new to resolved

    (from [bad1eac91d1549631dca8e93e7e846911649acf7]) Allow caches_action to accept cache store options. [#416 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    July 4th, 2008 @ 02:13 AM

  4. Alex Farrill