I have action caching setup for several actions of an application but I want the caching to only run for my administrators and have all other users see non-cached pages. Is there a way to do this? Perhaps something like passing a block to caches_action or setting some sort of flag in my authentication method? If this is not possible with action or fragment caching does anyone know of a plug in or other means to accomplish this sort of caching scheme? Thank you, Matthew Margolis blog.mattmargolis.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Matthew Margolis wrote:> I have action caching setup for several actions of an application but I > want the caching to only run for my administrators and have all other > users see non-cached pages. Is there a way to do this? Perhaps > something like passing a block to caches_action or setting some sort of > flag in my authentication method? If this is not possible with action > or fragment caching does anyone know of a plug in or other means to > accomplish this sort of caching scheme? > > Thank you, > Matthew Margolis > blog.mattmargolis.net > > > >Right after I sent this out I found http://blog.craz8.com/articles/2006/11/10/i-cant-use-rails-caching-because/ which is a plugin for adding exactly what I need to action_caching. If you need more flexibility with your caching be sure to check it out. Matthew Margolis blog.mattmargolis.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---