Changeset 12768
- Timestamp:
- 01/19/2010 07:45:44 PM (16 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
-
ms-functions.php (modified) (1 diff)
-
post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r12760 r12768 662 662 } 663 663 664 // deprecated, see clean_post_cache() 664 665 function 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 } 671 668 672 669 function add_user_to_blog( $blog_id, $user_id, $role ) { -
trunk/wp-includes/post.php
r12753 r12768 3673 3673 clean_post_cache( $cid ); 3674 3674 } 3675 3676 if ( is_multisite() ) 3677 wp_cache_delete( $wpdb->blogid . '-' . $id, 'global-posts' ); 3675 3678 } 3676 3679
Note: See TracChangeset
for help on using the changeset viewer.