I have a view where I have multiple things to load and I make an ajax
from the index view to add the content on success of each call and I
like to cache each of it so as to make the performance better.
@sample1 = Sample1.paginate(:page => params[:page], :per_page =>
respond_to do |format| format.js end
<% @sample1.each do |value| %>
<%= value.name %>
<% end %>
I have thousands of name and these values do not change often and I show
100 entries on each page. So, I wanted to cache these and display
of rendering each time.
Thanks in advance!