Thanks @yordansoares . Problem solved.
-
This reply was modified 2 years, 3 months ago by serjoug.
I can confirm I’m having the same problem
Yes, the query is generated by wordpress with this code:
$args = array(
'post_type' => 'post',
'posts_per_page' => $number,
'title_length' => $title_excerpt_words,
'content_length' => $excerpt_words,
'has_password' => false,
'order' => 'DESC',
);
if ( is_array( $categories ) && count( $categories ) > 0 ) {
$args['category__in'] = $categories;
}
$post = new WP_Query( $args );
I’m thinking the optimal solution would be adding the index on the post_password field and adjusting the generated query.