Using sessions and caches only on certain actions in Rails
1 class ArticlesController < ApplicationController 2 cached_pages = [:index, :read, :permalink, :category, 3 :find_by_date, :archives, :view_page, :tag] 4 caches_page *cached_pages 5 session :off, :only => cached_pages 6 7 ... 8 end
Means you'll end up with less pointless sessions being stored..