Make WordPress Core

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#6935 closed defect (bug) (invalid)

Incorrect comment moderation count

Reported by: dougal Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5.1
Component: Administration Keywords: comments, moderation, cache, caching, object cache
Focuses: Cc:


Currently in my dashboard, I'm being told that I have 4 comments awaiting moderation. But I seem to actually have zero. If I click on the "Awaiting Moderation (4)" link, it then tells me "No comments awaiting moderation… yet."

So, how do I reset the counter?

And how did it get out of sync in the first place?

This is with branches/2.5 rev 7899. (2.5.2-alpha, updated 2008-05-07T15:08:00-0000)

Change History (5)

#1 @ryan
8 years ago

Are you using a caching backend like memcached, APC, or xcache? They likely need to be updated to mark the "counts" cache group as non-persistent.

#2 @dougal
8 years ago

  • Cc dougal ryan added
  • Keywords cache caching object cache added

Yes, as a matter of fact, I did add xcache fairly recently. It's not immediately clear to me what I need to do in order to stop it from caching the comment counts.

But shouldn't the core code be updating the cached count as comment statuses change?

#3 @ryan
8 years ago

The cache backend needs to change to not persistently cache certain groups. We're going to add API to make this cleaner. See #6740.

#4 @ryan
7 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#5 @thee17
7 years ago

  • Milestone 2.5.2 deleted
Note: See TracTickets for help on using tickets.