Not a bug Page number is wrong

Sunka

Well-known member
Affected version
2.0
If you have 10 threads per page listed in some forum, and you have 27 threads, you will have 3 pages of that forum.
When you move 15 threads to another forum and go back to first forum you will still have 3 pages number at the bottom.

Is there some cron which will fix that or should I manual start some?
In xf1 it was automatically renumbered.

1.webp


2.webp
 
I cannot reproduce this in normal usage.

When we move threads between forums, we recalculate the discussion_count and message_count of both forums. If the discussion_count was already inaccurate then this theoretically could happen.

There is a rebuild tool that will likely fix this under Tools > Rebuild caches in the Admin CP. Just run the "Rebuild forums" tool to fix it. After that, if you could do some similar testing to see if the issue can be reproduced, that would be appreciated.
 
Nop.
I tried also thread rebuild but nothing.

I remove threads back so now it is situation like it was before testing, but as I rembember, incorrect numbers was only in thread from where you move threads
 
Could you submit a ticket please with login details for an admin and moderator account and also database access, such as via PhpMyAdmin? It's not something I can reproduce so it would be good to see what's actually going on with the data.
 
Sorry for the delay in getting back to you on this. I guess I forgot to ask you if you had any add-ons installed and ask you to disable them ;) Unfortunately the issue seems to be related to the Redis Cache add-on by @Xon. With the add-on enabled, the page count is incorrect. With it disabled, it is correct.
 
This is a poorly documented 'feature' where it can cache the thread count in a forum per-user. It looks like I forgot to update overview/documentation after I introduced it, and the defaults have some surprises in them.

I'll get around to that over the weekend.
 
Back
Top Bottom