- cache_fragment("archives-#{params[:year]}") do
  %ul.year-list
    - year_list.each do |year|
      %li= link_to year, "/archives/#{year}"

  .archive-by-month
    %h2= t('archives.title')
    %ul
      - @month_posts.each do |month, posts|
        %li.year
          %h3== #{month.year}-#{month.month}
          %ul
            - posts.each do |post|
              %li
                = link_to post.title, post.link
                = l post.created_at, :format => :long
                = link_to post.category.title, "/category/#{post.category.slug}/" if post.category

- cache_fragment("archives-#{params[:year]}", :shared) do
  %ul.year-list
    - year_list.each do |year|
      %li= link_to year, "/archives/#{year}"

  .archive-by-month
    %h2= t('archives.title')
    %ul
      - @month_posts.each do |month, posts|
        %li.year
          %h3== #{month.year}-#{month.month}
          %ul
            - posts.each do |post|
              %li
                = link_to post.title, post.link
                = l post.created_at, :format => :long
                = link_to post.category.title, "/category/#{post.category.slug}/" if post.category

Add :shared option to archive cache
Add :shared option to archive cache
