Guest User

Untitled

a guest
May 17th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def page_cache_file(path)
  2. name = (path.empty? || path == "/") ? "/index" : URI.unescape(path.chomp('/'))
  3. name << page_cache_extension unless (name.split('/').last || name).include? '.'
  4. return name
  5. end
Add Comment
Please, Sign In to add comment