I'm trying to cache the pages of a paginated list but my cache block seems to be returning the first page:
<% cached 'OtherArtists-{$OtherArtists.CurrentPage}', $List('Artist').max('LastEdited') %>
<% if $OtherArtists %>
<h2>Works Available By
<% if $OtherArtists.MoreThanOnePage && $OtherArtists.NotFirstPage %>
<small class="page-count">Page $OtherArtists.CurrentPage of $OtherArtists.TotalPages</small>
<% end_if %>
</h2>
<ul class="artwork-grid" id="Posts">
<% loop $OtherArtists %>
//Code
<% end_loop %>
</ul>
<% end_if %>
<% end_cached %>