Permalink
Browse files

Fixed issues with caching root pages #734 [Nicholas Seckar]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@867 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Mar 6, 2005
1 parent 19e8b42 commit 86543a70fb93069d2522dad00edf06c1ef2570de
Showing with 3 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_controller/caching.rb
View
@@ -1,5 +1,7 @@
*SVN*
+* Fixed issues with caching root pages #734 [Nicholas Seckar]
+
* Changed ActiveRecordStore to use Marshal instead of YAML as the latter proved troublesome in persisting circular dependencies. Updating existing applications MUST clear their existing session table from data to start using this updated store #739 [Jamis Buck]
* Added shortcut :id assignment to render_component and friends (before you had to go through :params) #784 [Lucas Carlson]
@@ -91,7 +91,7 @@ def caches_page(*actions)
private
def page_cache_file(path)
name = ((path.empty? || path == "/") ? "/index" : path)
- name << '.html' unless path.split('/').last.include? '.'
+ name << '.html' unless (name.split('/').last || name).include? '.'
return name
end

0 comments on commit 86543a7

Please sign in to comment.