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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 -- Cheers, - Jacob Atzen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sep 8, 2007, at 7:42 PM, Snaggy wrote:> > 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..In what environment are you testing your caching? IIRC caching only works in the "production" environment and not in "development". Regards, Sjoerd. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---