High CPU on /wp-admin/load-styles.php
-
I manage around 60 WordPress sites. Starting a couple of weeks ago some of the sites are experiencing a random issue when working in wp-admin area. The site becomes unresponsive. In WHM I can see the process for /wp-admin/load-styles.php sitting around 100%. If I end the process the admin area works again for a time.
The sites are spread across 3 dedicated WHM servers. They all started doing this within the past two weeks and there is no commonality between the themes and plugins. It is a mix of Divi, Elementor, Bricks Builder, and other themes. The only common plugins I has were WP Rocket and ManageWP, I disabled both on all affected sites and the issue did not resolve.
My troubleshooting leads me to the file ‘?wp-includes/script-loader.php’ From line 1633:// Only load the default layout and margin styles for themes without theme.json file.
if ( ! wp_theme_has_theme_json() ) {
$wp_edit_blocks_dependencies[] = ‘wp-editor-classic-layout-styles’;
}If I comment out these lines, the problem is resolved.
Any idea what would cause this?
- The topic ‘High CPU on /wp-admin/load-styles.php’ is closed to new replies.