<ul class="menu">
  <li><%= link_to t(".all"), media_index_path %></li>
  <%# When changing the cache key, also update Media#expire_caches %>
  <% cache "menu-fandoms-version5", skip_digest: true do %>
    <% Media.for_menu.each do |medium| %>
      <% unless medium.id.nil? %>
        <li id="medium_<%= medium.id %>"><%= link_to medium.name, media_fandoms_path(medium) %></li>
      <% end %>
    <% end %>
  <% end %>
</ul>
