method
page_cache_file
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActionController::Caching::Pages::ClassMethods
page_cache_file(path, extension)
private
Hide source
# File actionpack/lib/action_controller/caching/pages.rb, line 128 def page_cache_file(path, extension) name = (path.empty? || path == "/") ? "/index" : URI.parser.unescape(path.chomp('/')) unless (name.split('/').last || name).include? '.' name << (extension || self.page_cache_extension) end return name end