WordPress.org

Make WordPress Core

Opened 12 months ago

Closed 3 months ago

#24244 closed defect (bug) (invalid)

Clean post cache when post was moved to trash

Reported by: m_uysl Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Cache API Keywords: has-patch
Focuses: Cc:

Description

Clean post cache when post was moved to trash

Attachments (1)

post-diff.php (299 bytes) - added by m_uysl 12 months ago.

Download all attachments as: .zip

Change History (2)

m_uysl12 months ago

comment:1 wonderboymusic3 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

clean_post_cache() gets called in wp_insert_post() which gets called when trashing a post. To see for yourself, add an error_log( 'called' ) inside of clean_post_cache() and watch your Apache log while trashing a post.

Note: See TracTickets for help on using tickets.