1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixed problem with page caching #958 [Rick Olson]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1029 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-03-27 21:52:48 +00:00
parent b7c7b35b07
commit 439a216dcb
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
*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]

View file

@ -99,7 +99,7 @@ module ActionController #:nodoc:
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