method
page_cache_file
v3.0.9 -
Show latest stable
- Class:
ActionController::Caching::Pages::ClassMethods
page_cache_file(path, extension)private
No documentation available.
# File actionpack/lib/action_controller/caching/pages.rb, line 101
def page_cache_file(path, extension)
name = (path.empty? || path == "/") ? "/index" : URI.unescape(path.chomp('/'))
unless (name.split('/').last || name).include? '.'
name << (extension || self.page_cache_extension)
end
return name
end