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” not “” even though
that’s what’s being rendered.

If I manually type “”, the cache is
created, but then it not used when someone visits using”.

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


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