Something off with pagination
Jamroom Developers
This is actually expected behavior when using "simplepagebreak".
Mountaintop has posted exactly 50 topics. With simplepagebreak being used (instead of the normal pagebreak due to the size of the datastore and the "Use Optimized Pager" setting enabled in the Core), there is no "total" SQL query that is run to determine the total number of posts. The counting SQL query used with the regular pagebreak is the slowest part of the function, so we exclude that when using simplepagebreak and just assume that if we can
fill an entire page to it's simplepagebreak number, then we always show the "next page" link. In this case if Mountaintop had 49 or 51 posts this would not be an issue, but since he is right at 50 we show the "next page" link even though there is no next page.
This is an acceptable side effect for % of time you run into it versus the every-request drastic performance improvement you get from not running the counting query.
updated by @brian: 05/28/18 08:37:19AM