Caching only certain formats (xml) of an action

I've got a controller method that I'd like to cache ... the problem is I
only want to cache the XML output of a method. (This is for a number of
reasons, including the fact that the feed of this action gets hit fairly
often, but the html result does no and also contains other,
user-specific info in the layout.)

In other words, I'm wondering how to do the following:

I suspect you'll want to go beyond the pre-wired caching and use
something like memcache where you'll have a lot more control over what
gets cached.

AndyV wrote:

I suspect you'll want to go beyond the pre-wired caching and use
something like memcache where you'll have a lot more control over what
gets cached.

On Jan 28, 4:52 pm, Lance Ditkins <rails-mailing-l...@andreas-s.net>

Thanks for the reply ... but what effect would the fragment storage
mechanism have on this functionality? AFAIK, file fragment storage has
just as many options for namespace tinkering etc that memcache does.