Changeset 55526 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 03/10/2023 04:27:23 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-query.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r55252 r55526 2809 2809 2810 2810 $cache_key = "comment_feed:$key:$last_changed"; 2811 $comment_ids = wp_cache_get( $cache_key, 'comment ' );2811 $comment_ids = wp_cache_get( $cache_key, 'comment-queries' ); 2812 2812 if ( false === $comment_ids ) { 2813 2813 $comment_ids = $wpdb->get_col( $comments_request ); 2814 wp_cache_add( $cache_key, $comment_ids, 'comment ' );2814 wp_cache_add( $cache_key, $comment_ids, 'comment-queries' ); 2815 2815 } 2816 2816 _prime_comment_caches( $comment_ids, false ); … … 3166 3166 $cache_found = false; 3167 3167 if ( null === $this->posts ) { 3168 $cached_results = wp_cache_get( $cache_key, 'post s', false, $cache_found );3168 $cached_results = wp_cache_get( $cache_key, 'post-queries', false, $cache_found ); 3169 3169 3170 3170 if ( $cached_results ) { … … 3221 3221 ); 3222 3222 3223 wp_cache_set( $cache_key, $cache_value, 'post s' );3223 wp_cache_set( $cache_key, $cache_value, 'post-queries' ); 3224 3224 } 3225 3225 … … 3254 3254 ); 3255 3255 3256 wp_cache_set( $cache_key, $cache_value, 'post s' );3256 wp_cache_set( $cache_key, $cache_value, 'post-queries' ); 3257 3257 } 3258 3258 … … 3329 3329 ); 3330 3330 3331 wp_cache_set( $cache_key, $cache_value, 'post s' );3331 wp_cache_set( $cache_key, $cache_value, 'post-queries' ); 3332 3332 } 3333 3333 … … 3368 3368 3369 3369 $comment_cache_key = "comment_feed:$comment_key:$comment_last_changed"; 3370 $comment_ids = wp_cache_get( $comment_cache_key, 'comment ' );3370 $comment_ids = wp_cache_get( $comment_cache_key, 'comment-queries' ); 3371 3371 if ( false === $comment_ids ) { 3372 3372 $comment_ids = $wpdb->get_col( $comments_request ); 3373 wp_cache_add( $comment_cache_key, $comment_ids, 'comment ' );3373 wp_cache_add( $comment_cache_key, $comment_ids, 'comment-queries' ); 3374 3374 } 3375 3375 _prime_comment_caches( $comment_ids, false );
Note: See TracChangeset
for help on using the changeset viewer.