Caching with default routes

Hi all. I’m trying to implement caching for the main page on a site.
In the routes.rb file I have:

map.connect ‘’, :controller => ‘respond’, :action => ‘issue’

The ‘issue’ action finds the most recently published issue (say id 5)
and sets the :id = 5. Then it renders the page for issue id 5.

The problem is that it won’t actually cache because the url show
www.domain.com” not “www.domain.com/respond/issue/5” even though
that’s what’s being rendered.

If I manually type “www.domain.com/respond/issue/5”, the cache is
created, but then it not used when someone visits using
www.domain.com”.

Is there any way to enable caching (page or action) in this scenario?
Thanks for the help.

–Ryan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs