[wp-trac] [WordPress Trac] #27459: unnecessary call of wp_cache_delete( 'get_pages', 'posts' ) in clean_post_cache()
WordPress Trac
noreply at wordpress.org
Wed Mar 19 20:42:37 UTC 2014
#27459: unnecessary call of wp_cache_delete( 'get_pages', 'posts' ) in
clean_post_cache()
--------------------------+-----------------------------
Reporter: szaqal21 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cache API | Version: 3.7.1
Severity: normal | Keywords:
Focuses: performance |
--------------------------+-----------------------------
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');
}}}
in
{{{
clean_post_cache()
}}}
does nothing, should be removed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27459>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list