109 pointsSerious WPMU DEV-sterI'm new here
GhostPool
Member
—
6th September 2009 (2 years ago)
I'm using the post indexer plugin and calling the post hits from the database to display on the site. My members are reporting that when they edit their posts the post hits are being reset.
I'm using the post indexer plugin and calling the post hits from the database to display on the site. My members are reporting that when they edit their posts the post hits are being reset.
Oh, I see. The feature seems a bit pointless in that case - why count hits at all if they are reset when a post is edited? Is there anyway of getting around this?
7430 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Erstwhile founder
—
6th September 2009 (2 years ago)
#
Again, one of the reasons the feature is not enabled.
Is there anyway of getting around this?
Not without recoding a section of the post indexer I'm afraid.
Hits are an incredibly bad way of measuring post popularity. That's the primary reason we've never done anything about this issue. If anything we should actually just remove the hits feature.
Responses (3)
Erstwhile founder — 6th September 2009 (2 years ago) #
I'm afraid that's how it works. One of the reasons it's disabled to start with.
When a post is updated, the row in site_posts for that post is removed and then a new one is inserted.
Thanks,
Andrew
Member — 6th September 2009 (2 years ago) #
Oh, I see. The feature seems a bit pointless in that case - why count hits at all if they are reset when a post is edited? Is there anyway of getting around this?
Erstwhile founder — 6th September 2009 (2 years ago) #
Again, one of the reasons the feature is not enabled.
Not without recoding a section of the post indexer I'm afraid.
Hits are an incredibly bad way of measuring post popularity. That's the primary reason we've never done anything about this issue. If anything we should actually just remove the hits feature.
Thanks,
Andrew
Become a member