return $comment_data;
} /*
* Only use the args defined in the query_var_defaults to compute the key,
* but ignore 'fields', 'update_comment_meta_cache', 'update_comment_post_cache' which does not affect query results.
*/
$_args =
wp_array_slice_assoc( $this->query_vars,
array_keys( $this->query_var_defaults
) );
unset( $_args['fields'
],
$_args['update_comment_meta_cache'
],
$_args['update_comment_post_cache'
] );
$key =
md5( serialize( $_args ) );
$last_changed =
wp_cache_get_last_changed( 'comment'
);
$cache_key = "get_comments:
$key:
$last_changed";
$cache_value =
wp_cache_get( $cache_key, 'comment-queries'
);
if ( false ===
$cache_value ) { $comment_ids =
$this->
get_comment_ids();
if ( $comment_ids ) { $this->
set_found_comments();
} $cache_value = array
( 'comment_ids' =>
$comment_ids,