Ruby on rails 我的俄罗斯娃娃有什么不对?

Ruby on rails 我的俄罗斯娃娃有什么不对?,ruby-on-rails,caching,russian-doll-caching,Ruby On Rails,Caching,Russian Doll Caching,这是我的代码: <% cache(author_helper_method) do %> <div class="author"> <% @authors.each do |author| %> <% cache(author) do %> <h2>My name is <%= author.name %></h2> <% author.article

这是我的代码:

<% cache(author_helper_method) do %>
  <div class="author">
    <% @authors.each do |author| %>
      <% cache(author) do %>
        <h2>My name is <%= author.name %></h2>
        <% author.articles.each do |art| %>
          <p>I wrote: <span style="text-decoration: underline"><%= link_to art.name, articles_show_path(art) %> </span></p>
        <% end %>
      <% end %>
    <% end %>
  </div>
<% end %>

它在开发中起作用了吗?对我来说,这看起来不像是一个缓存问题。如果未呈现,则文章为[]。
module ApplicationHelper
  def author_helper_method
    count = Author.count
    max_updated_at = Author.maximum(:updated_at).try(:utc).try(:to_s, :number)
    "authors/all-#{count}-#{max_updated_at}"
  end
end