How can I bypass caching for some users

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

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