Strange PaginatedList issue

Silverstripe Version: 4.3


Has anyone had problems with PaginatedList.? I feel as though this might be a weird server-related issue as it happens intermittently. Any suggestions on where to look would be appreciated.

In a template, $PaginatedList will return unexpected results.

e.g. the following will work with no problems

<% loop $PaginatedList %>
	<% include SilverStripe\\Blog\\PostSummary %>
<% end_loop %>

However, in the same template, the following will return ‘0’:


Accessing $TotalItems inside the loop works fine, e.g. the following returns ‘7777777’ (as expected):

<% loop $PaginatedList %>
<% end_loop %>

I would be grateful if anyone can shed some light as this only happens once in a while on a shared server (Digital Pacific). I have noticed the issue disappears the next day or so. I can’t replicate the problem on my local server.