Make WordPress Core

#24779 closed defect (bug) (fixed)

Editing a comment doesn't clear the Recent Comments widget cache

Reported by: pento Owned by: ocean90
Milestone: 3.7 Priority: normal
Severity: minor Version: 2.2
Component: Widgets Keywords: has-patch commit
Focuses: Cc:


To reproduce:

  • Enable persistent object caching in WordPress
  • Add Recent Comments widget to a sidebar
  • Create a comment
  • Check that the widget shows the comment
  • In wp-admin/edit-comments.php, use Edit or Quick Edit to change the Name in the comment, and Save


The widget is not updated with the new comment author name.

Attachments (1)

24779.diff (527 bytes) - added by pento 21 months ago.

Download all attachments as: .zip

Change History (5)

@pento21 months ago

comment:1 @SergeyBiryukov21 months ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to Future Release
  • Version changed from 3.5.2 to 2.2

Related: [5301], [11718].

comment:2 @ocean9020 months ago

  • Milestone changed from Future Release to 3.7

comment:3 @ocean9020 months ago

Tested with Memcache. Looks good.

comment:4 @ocean9020 months ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 25049:

Flush the cache in Recent Comments widget on edit_comment. props pento, fixes #24779.

Note: See TracTickets for help on using tickets.