From 75f6c46b4c1b0f55dc2988d31ed4b2dfd1f54bb2 Mon Sep 17 00:00:00 2001 From: Elliot Winkler Date: Thu, 16 Apr 2009 01:28:37 -0500 Subject: [PATCH] Fix Rails::Rack:Static as it was not able to find page cache files if you moved the page cache directory --- railties/lib/rails/rack/static.rb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/railties/lib/rails/rack/static.rb b/railties/lib/rails/rack/static.rb index f07c6be..b04313f 100644 --- a/railties/lib/rails/rack/static.rb +++ b/railties/lib/rails/rack/static.rb @@ -20,6 +20,7 @@ module Rails else cached_path = directory_exist?(path) ? "#{path}/index" : path cached_path += ::ActionController::Base.page_cache_extension + cached_path = ActionController::Base.page_cache_directory.sub(@file_server.root, "").chomp("/") + cached_path if file_exist?(cached_path) env['PATH_INFO'] = cached_path -- 1.5.5