Well... the caches_page in my action_controller/caching/pages.rb uses an
after_filter
def caches_page(*actions)
return unless perform_caching
options = actions.extract_options!
after_filter({:only => actions}.merge(options)) { |c| c.cache_page }
end
whereas the caches_action in my action_controller/caching/actions.rb
uses an around_filter
def caches_action(*actions)
return unless cache_configured?
options = actions.extract_options!
around_filter(ActionCacheFilter.new(:cache_path =>
options.delete(:cache_path)), {:only => actions}.merge(options))
end
Perhaps the caches_page should be an around_filter as well??? (This is
an absolute shot-in-the-dark on my part)
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---