Ticket #21309: 21309-ancestors-cache.diff
File 21309-ancestors-cache.diff, 1.0 KB (added by , 12 years ago) |
---|
-
wp-includes/post.php
4475 4475 4476 4476 wp_cache_delete( $post->ID, 'posts' ); 4477 4477 wp_cache_delete( $post->ID, 'post_meta' ); 4478 wp_cache_delete( $post->ID, 'post_ancestors' ); 4478 4479 4479 4480 clean_object_term_cache( $post->ID, $post->post_type ); 4480 4481 -
wp-includes/load.php
410 410 411 411 if ( function_exists( 'wp_cache_add_global_groups' ) ) { 412 412 wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss', 'global-posts' ) ); 413 wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' , 'post_ancestors') );413 wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) ); 414 414 } 415 415 } 416 416