Ticket #15715: cache_get_users_of_blog.diff
File cache_get_users_of_blog.diff, 541 bytes (added by , 14 years ago) |
---|
-
wp-includes/user.php
614 614 if ( empty( $id ) ) 615 615 $id = get_current_blog_id(); 616 616 617 return get_users( array( 'blog_id' => $id ) ); 617 $users = wp_cache_get( 'users_of_blog-' . $id, 'users' ); 618 619 if ( false === $users ) { 620 $users = get_users( array( 'blog_id' => $id ) ); 621 wp_cache_set( 'users_of_blog-' . $id, $users, 'users' ); 622 } 623 624 return $users; 618 625 } 619 626 620 627 /**