mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
5a41d00455
If a template includes `# Template Collection: ...` anywhere in its source, that name will be used as the cache name for the partial that is rendered for the collection. This allows users to enable collection caching even if the template doesn't start with `<% cache ... do %>`. Moreover, the `# Template Collection: ...` notation is recognized in all template types (and template types other than ERB can define a resource_cache_call_pattern method to allow the `cache ... do` pattern to be recognized too). |
||
---|---|---|
.. | ||
builder.rb | ||
erb.rb | ||
raw.rb |