News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Recent post limit problem

Started by gevv, January 25, 2022, 07:37:09 AM

Previous topic - Next topic

gevv

Hi,

The recent post is not more than 10.

I increased the number in the theme settings.  (Number of recent posts to display on board index: 30)

Problem not solved.

RC4 nightly github (24-01-2022)
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Arantor

To avoid the recent posts being a really slow query and hurting performance, two things happen.

First, it is cached for a minute at a time so it won't update immediately even if you change that setting.

Secondly, to avoid it having to consider every possible post, it looks at the post ids. In this case it takes the highest post id it knows of, subtracts 50 * the number of posts you have set. So if the highest message id you had was 10000, it would calculate 10000-(50x30) = 10000 - 1500 = 8500 and only look at message ids beyond that.

If you have unapproved posts, a lot of recent deletions or you're not looking as admin this might limit you, as it might not find 30 posts in the relevant range.

You can adjust this by editing Subs-Recent.php but it's not at all recommended.

Advertisement: