I saw this older post when searching for information:
withfragmentcachingonecancacheparts of a page. However, more often than not what I would need is the exact opposite approach. I would like to be able to use action cashing and have a mechanism for telling Rails to excludeoneor more areas from the cashing and fill them with dynamic content instead. A good example would be a page whereallcontent would be perfectly cachablebutonetiny line saying 'logged in as [username]'.
Wouldn't a mechanism for doing this more elegantly be a great addition to Rails? Or am I missing something and this is in fact currently possible?
I have exactly the same need - a front page that has a bit of text that changes depending on whether the user is logged in or not. Everything else could be cached using page cacheing.
Hrm.... I'll take a look at the code... maybe something like 'cache_except' is possible?
Thanks, Dave