Skip to main content
Topic: Latest post on board index: borked in 1.09 (Read 3290 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Latest post on board index: borked in 1.09

Screenshot attached. It's a weird one. Any ideas?
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Latest post on board index: borked in 1.09

Reply #1

Are you talking about the same issue discussed here : Forum Index Display ??

Re: Latest post on board index: borked in 1.09

Reply #2

I think his talking about the avatar which is not uninanimous in size.

Re: Latest post on board index: borked in 1.09

Reply #3

No. I am talking about the latest post in the info centre.

The two orange arrows point to that post: once in the info centre, and once in the actual board.
The blue arrow points to a post which was made much later than that.
That later post should be showing in the info centre, but isn't.

This is borken. :)
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Latest post on board index: borked in 1.09

Reply #4

Oo ok then. It's clearly broken.

Re: Latest post on board index: borked in 1.09

Reply #5

IIRC it was discussed at least another 3 or 4 times, and each time the answer is  always the same: cache.
Bugs creator.
Features destroyer.
Template killer.

Re: Latest post on board index: borked in 1.09

Reply #6

Ok, that's all cool and groovy, but the result is still that you have a so-called latest post feature which doesn't do what it says on the tin. It's always lagging behind the actual latest posts. It's something that should not be cached.

IOW, it's borked.

So, wotcha wanna do about it?
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Latest post on board index: borked in 1.09

Reply #7

 emanuele doesn't care. :P
Bugs creator.
Features destroyer.
Template killer.

Re: Latest post on board index: borked in 1.09

Reply #8

Ok. :D I can dig that.

In that case, since it doesn't work and you don't care about it, wouldn't the sensible option be to just remove the bloody thing? That way there is no debugging to worry about, and you have less crud to deal with.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Latest post on board index: borked in 1.09

Reply #9

Or you could just rename it to "one of the latest posts" :P (Not caching it seems like a bit of a wasted query. Basically you just need to flush the cache when a new post is made. But maybe that's much easier said than done?)

Re: Latest post on board index: borked in 1.09

Reply #10

No, wait, I do not RC: the issue is that usually the one complaining is ignoring the board.
If the board is ignored, it doesn't count towards the "latest post/s" and so it happens that you have results like that.
Bugs creator.
Features destroyer.
Template killer.

Re: Latest post on board index: borked in 1.09

Reply #11

Not the issue in this case. I didn't have those boards on ignore.

I did have a couple of whole categories collapsed on the board index, but that was all.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Latest post on board index: borked in 1.09

Reply #12

QuoteNo, wait, I do not RC: the issue is that usually the one complaining is ignoring the board.
wutevah you say, bozz....
LiveGallery - Simple gallery addon for ElkArte

Re: Latest post on board index: borked in 1.09

Reply #13

This is the relevant code:
Code: [Select]
			// Determine a global most recent topic.
if ($this->_options['set_latest_post'] && !empty($row_board['poster_time']) && $row_board['poster_time'] > $this->_latest_post['timestamp'] && !$ignoreThisBoard)
$this->_latest_post = &$this->_current_boards[$isChild ? $row_board['id_parent'] : $row_board['id_board']]['last_post'];

if:
the latest_post is show, and
there is a poster_time associated to the latest post of a certain board, and
this poster_time is higher than the previous latest_post found, and
the board is not in ignore[1]
Code: [Select]
$ignoreThisBoard = in_array($row_board['id_board'], $this->_user['ignoreboards']);

then that post from that board becomes the next latest post.
This is inside the loop that populates the board index list.
I tend to think the only thing that could fail is the ignored board, because the time is show on both the posts, but it's there.

I spent also a bit of time following in real time the forum, and as expected the "recent posts" list is slightly slower to catch up (cache), but the latest post is always correct.
Dunno.
If you can identify a series of steps to reproduce the issue it would be best. :D
$ignoreThisBoard is set as
Bugs creator.
Features destroyer.
Template killer.

 

Re: Latest post on board index: borked in 1.09

Reply #14

I don't have any boards on ignore. I'm not use what information would be useful here. It's just a forum with a bunch of boards, and the info centre "latest" lags behind by a substantial margin at times.

The recent posts don't lag. They work as they should.

If it helps: the caching is set to Level 1, file based. The server supports XCache, but that option is not currently selected in admin.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P