Make WordPress Core

Opened 23 months ago

Last modified 23 months ago

#25556 new defect (bug)

Recent Comments widget does not flush cache when a post is trashed

Reported by: kovshenin Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 2.8
Component: Widgets Keywords: has-patch
Focuses: Cc:


Steps to reproduce:

  1. Make sure persistent object caching is enabled
  2. Drop a recent comments widget to your sidebar
  3. Create a new post, comment on it
  4. Trash the post

Comment will still be visible in the widget, the link will lead to a 404.

Attachments (1)

25556.diff (587 bytes) - added by kovshenin 23 months ago.

Download all attachments as: .zip

Change History (3)

@kovshenin23 months ago

comment:1 @kovshenin23 months ago

  • Keywords has-patch added

25556.diff flushes the widget cache during post status transitions. We could probably go further and check whether the post type supports and/or has comments.

comment:2 @helen23 months ago

Related: #24779

Note: See TracTickets for help on using tickets.