Optimize query to improve performance

Posted in: Newspaper
Post count: 4

Hi, i notice this query is always present as a slow..how can i fix it.. thanks

SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
FROM wp_posts
WHERE post_type = ‘attachment’
ORDER BY post_date DESC

In….

do_action(‘admin_enqueue_scripts’)
wp-includes/plugin.php:453
load_wp_admin_css()
wp-content/themes/Newspaper/includes/wp_booster/td_wp_booster_functions.php:398
wp_enqueue_media()
wp-includes/media.php:3432

Post count: 22421

Hello,

Please test the query without plugins. Disable all plugins except the page builder, clear cache and reset cdn files if you use it. Also please use this guide to make the proper host requirements: https://forum.tagdiv.com/search/requirements/
Then run your query test again.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.