Changeset 56656 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 09/21/2023 07:32:55 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r56549 r56656 3271 3271 } 3272 3272 3273 $is_unfiltered_query = $old_request == $this->request && "{$wpdb->posts}.*" === $fields; 3274 3273 3275 if ( null === $this->posts ) { 3274 3276 $split_the_query = ( 3275 $old_request == $this->request 3276 && "{$wpdb->posts}.*" === $fields 3277 $is_unfiltered_query 3277 3278 && ( 3278 3279 wp_using_ext_object_cache() … … 3337 3338 $this->posts = array_map( 'get_post', $this->posts ); 3338 3339 } 3340 3341 $unfiltered_posts = $this->posts; 3339 3342 3340 3343 if ( $q['cache_results'] && $id_query_is_cacheable && ! $cache_found ) { … … 3530 3533 3531 3534 if ( $q['cache_results'] ) { 3532 update_post_caches( $this->posts, $post_type, $q['update_post_term_cache'], $q['update_post_meta_cache'] ); 3535 if ( $is_unfiltered_query && $unfiltered_posts === $this->posts ) { 3536 update_post_caches( $this->posts, $post_type, $q['update_post_term_cache'], $q['update_post_meta_cache'] ); 3537 } else { 3538 $post_ids = wp_list_pluck( $this->posts, 'ID' ); 3539 _prime_post_caches( $post_ids, $q['update_post_term_cache'], $q['update_post_meta_cache'] ); 3540 } 3533 3541 } 3534 3542
Note: See TracChangeset
for help on using the changeset viewer.