Changeset 48055
- Timestamp:
- 06/16/2020 06:28:57 AM (5 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r48054 r48055 6360 6360 */ 6361 6361 function _get_non_cached_ids( $object_ids, $cache_key ) { 6362 $clean = array(); 6363 foreach ( $object_ids as $id ) { 6362 $clean = array(); 6363 $cache_values = wp_cache_get_multiple( $object_ids, $cache_key ); 6364 foreach ( $cache_values as $id => $cache_value ) { 6364 6365 $id = (int) $id; 6365 if ( ! wp_cache_get( $id, $cache_key )) {6366 if ( ! $cache_value ) { 6366 6367 $clean[] = $id; 6367 6368 } -
trunk/src/wp-includes/meta.php
r47808 r48055 927 927 } 928 928 929 $cache_key = $meta_type . '_meta';930 $ids = array();931 $cache = array();932 foreach ( $object_ids as $id ) {933 $cached_object = wp_cache_get( $id, $cache_key );929 $cache_key = $meta_type . '_meta'; 930 $ids = array(); 931 $cache = array(); 932 $cache_values = wp_cache_get_multiple( $object_ids, $cache_key ); 933 foreach ( $cache_values as $id => $cached_object ) { 934 934 if ( false === $cached_object ) { 935 935 $ids[] = $id; -
trunk/src/wp-includes/taxonomy.php
r47930 r48055 3411 3411 3412 3412 $ids = array(); 3413 foreach ( (array) $object_ids as $id ) { 3414 foreach ( $taxonomies as $taxonomy ) { 3415 if ( false === wp_cache_get( $id, "{$taxonomy}_relationships" ) ) { 3416 $ids[] = $id; 3413 foreach ( $taxonomies as $taxonomy ) { 3414 $cache_values = wp_cache_get_multiple( (array) $object_ids, "{$taxonomy}_relationships" ); 3415 foreach ( $cache_values as $key => $value ) { 3416 if ( false === $value ) { 3417 $ids[] = $key; 3417 3418 break; 3418 3419 }
Note: See TracChangeset
for help on using the changeset viewer.