$_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,
'found_comments' =>
$this->found_comments,
);
wp_cache_add( $cache_key,
$cache_value, 'comment-queries'
);
} else { $comment_ids =
$cache_value['comment_ids'
];