Make WordPress Core

Opened 11 years ago

Closed 11 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:

Description

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)

@m_uysl
11 years ago

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