snax

ruby performance

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.

December 21, 2007

1 comment

sujal says (December 21, 2007):

You rock, dude. Nice work.

Sujal

Add a comment

Various HTML tags allowed. Use <pre> for code blocks and <code> for inline references.