Skip to content
Browse files

define the page_cache_file method

  • Loading branch information...
1 parent b88092b commit 2a444d61b6cceae11a2eb95d09ae7ef26a2f0e23 @peburrows committed May 28, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/models/translate_response_cache.rb
View
4 app/models/translate_response_cache.rb
@@ -102,6 +102,10 @@ def page_cache_path(path)
end
end
+ def page_cache_file(path)
+ name = ((path.empty? || path == "/") ? "/index" : URI.unescape(path))
+ end
+
# Reads a cached response from disk and updates a response object.
def read_response(path, response, request)
file_path = page_cache_path(path)

0 comments on commit 2a444d6

Please sign in to comment.
Something went wrong with that request. Please try again.