I don't understand how to cache this...

My website is mainly a single controller/action and the menu/page is chosen by passing the parameters params['menu'] params['submenu']

after rerouting, the urls look like this:

www.mywebsite.com/:menu/:submenu

I'd like to cache every url, since caching the whole action doesn't seem to do anything at all..

How can I approach this problem? bye

Snaggy wrote:

My website is mainly a single controller/action and the menu/page is chosen by passing the parameters params['menu'] params['submenu']

after rerouting, the urls look like this:

www.mywebsite.com/:menu/:submenu

I'd like to cache every url, since caching the whole action doesn't seem to do anything at all..

How can I approach this problem?

Sounds like you're looking for page caching.

The API docs on page caching can be found at:

http://api.rubyonrails.com/classes/ActionController/Caching/Pages.html

thanks, I did it but I still have some problem. I decided that I'll leave this when my app goes on the server now I don't to get an headache for nothing..

thanks bye

In what environment are you testing your caching? IIRC caching only works in the "production" environment and not in "development".

Regards,

Sjoerd.