Object
If infer_extension is true, the cache path extension is looked up from the request’s path & format. This is desirable when reading and writing the cache, but not when expiring the cache - expire_action should expire the same files regardless of the request format.
# File lib/action_controller/caching/actions.rb, line 150 150: def initialize(controller, options = {}, infer_extension = true) 151: if infer_extension 152: @extension = controller.params[:format] 153: options.reverse_merge!(:format => @extension) if options.is_a?(Hash) 154: end 155: 156: path = controller.url_for(options).split(%{://}).last 157: @path = normalize!(path) 158: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.