High CPU Usage on WordPress by this query ?
-
Im running latest version of wordpress.
Since I moved the website to new server and upgraded to latest WP, I see a weird issue.the CPU usage is close to 100% most of the time.
Frontend works perfectly fine.
but backend each page load almost takes 30-40 seconds.I installed MEMORY CHECKER plugin and found this query taking time :
Query: SELECT comment_approved, COUNT( * ) AS total FROM wp_comments GROUP BY comment_approved
Time it took query to run: 6.103515625E-5
The function that called the query: require_once(‘wp-admin/admin.php’), require(‘wp-admin/menu.php’), wp_count_comments, get_comment_count, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query
- The topic ‘High CPU Usage on WordPress by this query ?’ is closed to new replies.