WordPress.org

Make WordPress Core

Opened 19 months ago

Last modified 19 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:

Description

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 19 months ago.

Download all attachments as: .zip

Change History (3)

@kovshenin19 months ago

comment:1 @kovshenin19 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 @helen19 months ago

Related: #24779

Note: See TracTickets for help on using tickets.