malmostad/intranet-dashboard

Number of comments is not showing in dashboard box

Closed this issue · 4 comments

skarmdump 2014-08-06 08 49 04

In the example above there should be 8 comments om the top blog post. But it is not showing, while two comments on an earlier blog post is visible. Something to do with upgrade of WP (and therefore changed RSS formatting)? Or something local in the dashboard?

Might be the same with news box also, but have not checked. But I can, if you want me to.

Works in the news box. (Comment made right now.)
skarmdump 2014-08-06 10 10 26

WP is not upgraded on Komin yet. If it is just this post that has the problem I would guess it has to do with the publication date we messed around with for that post. Will investigate.

As a quick fix I have updated the 12 feeds that this post occurs in manually.

The problem is an edge case we haven't seen before. It happens when there are more activity in comments than posts. It happens because WordPress does only update the feed date when new posts are made in that feed, current date in the Blogg IT feed was <lastBuildDate>Tue, 05 Aug 2014 07:57:53 +0000</lastBuildDate>. We do another check as well to see if we should update a feeds feed entries when we fetch the feed and that is the HTTP etag. Wordpress has a criticized and strange behavior for etags and that is to set the same etag for all feeds. Each resource on a web server should have it's own etag by according to the spec.

There are several possible changes we can do to mitigate this. Since we have a related common request that deleted feeds in the source (Kominbloggen, Sydsvenskan etc.) should be deleted on the dashboard, i suggest we discuss solutions when we met next time.