Changeset 55526 for trunk/src/wp-includes/class-wp-comment-query.php
- Timestamp:
- 03/10/2023 04:27:23 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r54133 r55526 453 453 454 454 $cache_key = "get_comments:$key:$last_changed"; 455 $cache_value = wp_cache_get( $cache_key, 'comment ' );455 $cache_value = wp_cache_get( $cache_key, 'comment-queries' ); 456 456 if ( false === $cache_value ) { 457 457 $comment_ids = $this->get_comment_ids(); … … 464 464 'found_comments' => $this->found_comments, 465 465 ); 466 wp_cache_add( $cache_key, $cache_value, 'comment ' );466 wp_cache_add( $cache_key, $cache_value, 'comment-queries' ); 467 467 } else { 468 468 $comment_ids = $cache_value['comment_ids']; … … 1039 1039 foreach ( $_parent_ids as $parent_id ) { 1040 1040 $cache_key = "get_comment_child_ids:$parent_id:$key:$last_changed"; 1041 $parent_child_ids = wp_cache_get( $cache_key, 'comment ' );1041 $parent_child_ids = wp_cache_get( $cache_key, 'comment-queries' ); 1042 1042 if ( false !== $parent_child_ids ) { 1043 1043 $child_ids = array_merge( $child_ids, $parent_child_ids ); … … 1073 1073 $data[ $cache_key ] = $children; 1074 1074 } 1075 wp_cache_set_multiple( $data, 'comment ' );1075 wp_cache_set_multiple( $data, 'comment-queries' ); 1076 1076 } 1077 1077
Note: See TracChangeset
for help on using the changeset viewer.