This project is archived and is in readonly mode.

#198 ✓resolved
José Valim

caches_action with :layout option

Reported by José Valim | May 14th, 2008 @ 07:32 PM | in 2.x

Added :layout to caches_action method.

If you specify :layout => false, the layout will not be cached, only the action content. This is useful if you have dynamic content in your layout (which is true for most applications).

This is useful to avoid fragment caching in the whole action and is faster also.

If the :layout is not set or set to true, we have the default behavior.

Tests added.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages