Skip to content
Permalink
Browse files

Add collection caching page links

Change proposed by @evenreven
  • Loading branch information
evenreven authored and bricesanchez committed Oct 1, 2019
1 parent c387993 commit d7a92b231efe501c2753e638a17853f20a45ab83
Showing with 4 additions and 4 deletions.
  1. +4 −4 pages/app/views/refinery/admin/pages_dialogs/link_to.html.erb
@@ -27,10 +27,10 @@
<div id="your_page_content" class="clearfix">
<div id="pages_list" class="pages_list">
<ul class="link_list">
<%= render :partial => '/refinery/admin/pages_dialogs/page_link', :collection => @pages,
:locals => {
:child => 0,
:link_to_arguments => {}
<%= render partial: '/refinery/admin/pages_dialogs/page_link', collection: @pages, cached: true,
locals: {
child: 0,
link_to_arguments: {}
} %>
</ul>
<%= will_paginate @pages, :id => 'pages_paginate' %>

0 comments on commit d7a92b2

Please sign in to comment.
You can’t perform that action at this time.