Ticket #11381: 11381.diff
File 11381.diff, 1.6 KB (added by , 15 years ago) |
---|
-
wp-includes/user.php
539 539 540 540 $query .= " ORDER BY $orderby $order"; 541 541 542 $users = $wpdb->get_results( $query ); 542 $cache_id = md5($query); 543 $users = wp_cache_get($cache_id, 'tmp'); 544 if ( $users === false ) { 545 $users = $wpdb->get_results( $query ); 546 wp_cache_add($cache_id, $users, 'tmp'); 547 } 543 548 544 549 $output = ''; 545 550 if ( !empty($users) ) { -
wp-settings.php
309 309 wp_cache_init(); 310 310 if ( function_exists('wp_cache_add_global_groups') ) { 311 311 wp_cache_add_global_groups(array ('users', 'userlogins', 'usermeta', 'site-transient')); 312 wp_cache_add_non_persistent_groups(array( 'comment', 'counts', 'plugins' ));312 wp_cache_add_non_persistent_groups(array( 'comment', 'counts', 'plugins', 'tmp' )); 313 313 } 314 314 315 315 require (ABSPATH . WPINC . '/plugin.php'); -
wp-admin/includes/user.php
255 255 if ( $exclude_zeros ) 256 256 $query .= " AND meta_value != '0'"; 257 257 258 return $wpdb->get_col( $query ); 258 $cache_id = md5($query); 259 $user_ids = wp_cache_get($cache_id, 'tmp'); 260 if ( $user_ids === false ) { 261 $user_ids = $wpdb->get_col( $query ); 262 wp_cache_add($cache_id, $user_ids, 'tmp'); 263 } 264 265 return $user_ids; 259 266 } 260 267 261 268 /**