lib/nesta/cache.rb
# Establishes the file name of the cached file from the path given
# 
# TODO:: implement the opts={} functionality, and support for custom extensions on a per request basis. 
# 
Establishes the file name of the cached file from the path given
TODO:: implement the opts={} functionality, and support for custom extensions on a per request basis.
Establishes the file name of the cached file from the path given TODO :: implement the opts = {} functionality and support for custom extensions on a per request basis .
def cache_file_name(path,opts={})
          name = (path.empty? || path == "/") ? "index" : Rack::Utils.unescape(path.sub(/^(\/)/,'').chomp('/'))
          name << settings.cache_page_extension unless (name.split('/').last || name).include? '.'
          return name
        end
def cache_file_name ( path , opts = { } ) name = ( path . empty? || path == "/" ) ? "index" : Rack :: Utils . unescape ( path . sub ( / ^( \/ ) / , '' ) . chomp ( '/' ) ) name << settings . cache_page_extension unless ( name . split ( '/' ) . last || name ) . include? '.' return name end
Establishes the file name of the cached file from the path given
TODO:: implement the opts={} functionality, and support for custom extensions on a per request basis.
Establishes the file name of the cached file from the path given TODO :: implement the opts = {} functionality and support for custom extensions on a per request basis .
path
<not_specific>
opts
<not_specific>