Make WordPress Core

Changeset 12768


Ignore:
Timestamp:
01/19/2010 07:45:44 PM (16 years ago)
Author:
ryan
Message:

Merge clear_global_post_cache() into clean_post_cache(). fixes #11744

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r12760 r12768  
    662662}
    663663
     664// deprecated, see clean_post_cache()
    664665function clear_global_post_cache( $post_id ) {
    665     global $wpdb;
    666 
    667     wp_cache_delete( $wpdb->blogid . '-' . $post_id, 'global-posts' );
    668 }
    669 add_action( 'publish_post', 'clear_global_post_cache' );
    670 add_action( 'delete_post', 'clear_global_post_cache' );
     666    return;
     667}
    671668
    672669function add_user_to_blog( $blog_id, $user_id, $role ) {
  • trunk/wp-includes/post.php

    r12753 r12768  
    36733673            clean_post_cache( $cid );
    36743674    }
     3675
     3676    if ( is_multisite() )
     3677        wp_cache_delete( $wpdb->blogid . '-' . $id, 'global-posts' );
    36753678}
    36763679
Note: See TracChangeset for help on using the changeset viewer.