Make WordPress Core

Opened 11 years ago

Closed 10 years ago

#24244 closed defect (bug) (invalid)

Clean post cache when post was moved to trash

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


Clean post cache when post was moved to trash

Attachments (1)

post-diff.php (299 bytes) - added by m_uysl 11 years ago.

Download all attachments as: .zip

Change History (2)

11 years ago

#1 @wonderboymusic
10 years 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.