Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def page_cache_file(path)
- name = (path.empty? || path == "/") ? "/index" : URI.unescape(path.chomp('/'))
- name << page_cache_extension unless (name.split('/').last || name).include? '.'
- return name
- end
Add Comment
Please, Sign In to add comment