snax

caching content_for

According to Rails’ RDoc:

WARNING: content_for is ignored in caches. So you shouldn‘t use it for elements that will be fragment cached.

Pfff to that. Interlock caches it now, as long as it’s in a view_cache block.

Chris has a good article about content_for, for further reading.