WordPress.org

Make WordPress Core

Ticket #21309: 21309-ancestors-cache.diff

File 21309-ancestors-cache.diff, 1.0 KB (added by ryan, 8 years ago)
  • wp-includes/post.php

     
    44754475
    44764476        wp_cache_delete( $post->ID, 'posts' );
    44774477        wp_cache_delete( $post->ID, 'post_meta' );
     4478        wp_cache_delete( $post->ID, 'post_ancestors' );
    44784479
    44794480        clean_object_term_cache( $post->ID, $post->post_type );
    44804481
  • wp-includes/load.php

     
    410410
    411411        if ( function_exists( 'wp_cache_add_global_groups' ) ) {
    412412                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' ) );
    414414        }
    415415}
    416416