• D
    Support explicit defintion of resouce name for collection caching. · 5a41d004
    Dov Murik 提交于
    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).
    5a41d004
template.rb 13.7 KB