Skip to content

Commit

Permalink
AO3-6636 Update chapter cache key (#4670)
Browse files Browse the repository at this point in the history
This ensures that speculation rules prefetching is output, and cached, for all chapters.
  • Loading branch information
domenic authored Nov 22, 2023
1 parent 819c435 commit 4ec559f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/chapters/_chapter.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<%= render "chapters/chapter_management", chapter: chapter, work: @work %>
<% end %>

<% cache_if(!@preview_mode, "#{@work.cache_key}/#{chapter.cache_key}-show-v4", skip_digest: true) do %>
<% cache_if(!@preview_mode, "#{@work.cache_key}/#{chapter.cache_key}-show-v5", skip_digest: true) do %>

<div class="chapter<%= ' preface' unless @preview_mode %> group">
<h3 class="title">
Expand Down

0 comments on commit 4ec559f

Please sign in to comment.