Fixed problem with page caching #958 [Rick Olson]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1029 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 b7c7b35b
*SVN*
* Fixed problem with page caching #958 [Rick Olson]
*1.7.0* (27th March, 2005)
* Added ActionController::Base.page_cache_extension for setting the page cache file extension (the default is .html) #903 [Andreas]
......
......@@ -99,7 +99,7 @@ def caches_page(*actions)
private
def page_cache_file(path)
name = ((path.empty? || path == "/") ? "/index" : path)
name << @@page_cache_extension unless (name.split('/').last || name).include? '.'
name << page_cache_extension unless (name.split('/').last || name).include? '.'
return name
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册