Snaggy
(Snaggy)
September 8, 2007, 8:30am
1
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
Snaggy
(Snaggy)
September 8, 2007, 5:42pm
3
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.