Opened 11 years ago
Closed 9 years ago
#25556 closed defect (bug) (fixed)
Recent Comments widget does not flush cache when a post is trashed
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | Widgets | Keywords: | has-patch |
Focuses: | Cc: |
Description
Steps to reproduce:
- Make sure persistent object caching is enabled
- Drop a recent comments widget to your sidebar
- Create a new post, comment on it
- Trash the post
Comment will still be visible in the widget, the link will lead to a 404.
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
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.