Admin loading everything always?
-
Using WP Customer Reviews on a site with roughly ~2500 posts and seeing significantly long load times in WP admin on standalone VM servers. With the plugin activated, our page load time is roughly 8 seconds and with it deactivated, we are seeing roughly 1 second page load times.
I think I’ve isolated the issue but am not sure what the best approach for fixing it is. It seems that the get_all_posts_pages() function runs on every admin page and has a couple of expensive queries but is only necessary on the listing of reviews (I think?).
If I comment out lines 613 – 671 in /includes/admin/wp-customer-reviews-3-admin.php, I see significant gains on page load speed (down to about 1.5 seconds). I’m just not sure what functionality I’m going to break by removing that code. Individual post edit screens seem to load fine and still display the review metaboxes… and the listing page for the wpcr3_review post type still seems to load as well. Can you give me some clarity on what those lines are there for and if there’s any way to optimize this quickly? Thank you!
- The topic ‘Admin loading everything always?’ is closed to new replies.