Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#27459 closed defect (bug) (fixed)

unnecessary call of wp_cache_delete( 'get_pages', 'posts' ) in clean_post_cache()

Reported by: szaqal21's profile szaqal21 Owned by: wonderboymusic's profile wonderboymusic
Milestone: 4.0 Priority: normal
Severity: normal Version: 3.7.1
Component: General Keywords: needs-patch
Focuses: performance Cc:


Since results of get_pages() are cached as seperate keys:

$cache_key = "get_pages:$key:$last_changed";
wp_cache_set( $cache_key, $page_structure, 'posts' );

call of:

wp_cache_delete('get_pages', 'posts');



does nothing, should be removed.

Change History (3)

#1 @szaqal21
10 years ago

  • Component changed from Cache API to General

#2 @wonderboymusic
10 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 4.0


#3 @wonderboymusic
10 years ago

  • Owner set to wonderboymusic
  • Resolution set to fixed
  • Status changed from new to closed

In 28875:

Remove obsolete wp_cache_delete('get_pages', 'posts') from clean_post_cache().

Fixes #27459.

Note: See TracTickets for help on using tickets.