Class: ActionController::Caching::Actions::ActionCacheFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/interlock/action_controller.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#after(controller) ⇒ Object



245
246
247
248
# File 'lib/interlock/action_controller.rb', line 245

def after(controller) 
  return if controller.rendered_action_cache || !caching_allowed(controller) 
  controller.write_fragment(controller.action_cache_path.path, controller.response.body, :expire => @options[:expire]) # pass in our :expire 
end