Slow Query (WP_Query->get_posts) | WordPress.org

[ad_1]

Hi
In the WordPress admin dashboard
The EDD product item edit page takes about 40 seconds to load.
The other parts of the WordPress admin open quickly, only editing the EDD item is slow.

I installed the Query Monitor plugin. And in the Slow Query section, an item (WP_Query->get_posts) is displayed.

————————–

SELECT wp_posts.ID
FROM wp_posts
LEFT JOIN wp_postmeta
ON ( wpaz_posts.ID = wp_postmeta.post_id )
LEFT JOIN wp_postmeta AS mt1
ON ( wp_posts.ID = mt1.post_id
AND mt1.meta_key = '_edd_product_type' )
WHERE 1=1
AND ( ( wp_postmeta.meta_key = '_edd_product_type'
AND wp_postmeta.meta_value != 'bundle' )
OR mt1.post_id IS NULL )
AND wp_posts.post_type = 'download'
AND ((wp_posts.post_status = 'publish'
OR wp_posts.post_status = 'future'
OR wp_posts.post_status = 'draft'
OR wp_posts.post_status = 'private'))
GROUP BY wp_posts.ID
ORDER BY wp_posts.post_title ASC
LIMIT 0, 30

————————–

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer