WordPress.org

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:

Description

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

Result:

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

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

@pento20 months ago

comment:1 @SergeyBiryukov20 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 @ocean9019 months ago

  • Milestone changed from Future Release to 3.7

comment:3 @ocean9019 months ago

Tested with Memcache. Looks good.

comment:4 @ocean9019 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.