Routes + page cache + default route = not caching?

Hello all,

{routes.rb}

map.connect ‘’, :controller => “site”, :action=> “home”

{site_controller.rb}
class SiteController < ApplicationController
caches_page :portfolio, :home, :solutions, :aboutus, :contact

end

It creates every page in my cache directory portfolio.html,
solutions.html, aboutus.html, contact.html EXCEPT home.html

Is it me or routes or caching?

My development settings are lighttp, rails edge, ruby 1.8.4.

Thanks
Gokhan

On 1/15/07, Gokhan A. [email protected] wrote:

class SiteController < ApplicationController
My development settings are lighttp, rails edge, ruby 1.8.4.

Thanks
Gokhan

You should watch the logs, it will tell you when it’s caching
something. When you visit /foo, it writes /foo.html. If you visit /,
it writes /index.html. It doesn’t really matter what the action is
specifically, just the current url that’s used.


Rick O.
http://weblog.techno-weenie.net
http://mephistoblog.com