# File lib/action_controller/caching/pages.rb, line 74 def cache_page(content, path) return unless perform_caching path = page_cache_path(path) instrument_page_cache :write_page, path do FileUtils.makedirs(File.dirname(path)) File.open(path, "wb+") { |f| f.write(content) } end end