Server Load on Massive WordPress Site
-
Hello everyone,
I own a site built on wordpress which currently has:
Posts: 25,961
Comments: 174,737
Pages: 168
Categories: 169
Tags: 58,862My problem is that every time I make a new post the server load gets so high that the site becomes inaccessible. The site is updated 40-50 times per day!!!
The plugins I have on the site are:
Best Related Posts
Disqus Comment System
Google Analyticator
Jetpack by WordPress.com
NextGEN Gallery
NextGEN Gallery Optimizer Premium
Shareaholic
WP-DBManager
WP Minify
WP Super CacheI tried to solve the problem myself and end up to the query.php file where I replaced:
$this->found_posts = $wpdb->get_var( apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ) );
with this:
$this->found_posts = $wpdb->get_var( apply_filters_ref_array( 'found_posts_query', array( " SELECT COUNT(distinct $groupby) FROM $wpdb->posts $join WHERE 1=1 $where $orderby", &$this ) ) );
interestingly this actually solves the problem of the load after each post but breaks the navigation at the end of the page (previous – next pages)!
Could someone please help me either fix the issue of the navigation or locate the root of the problem if it’s not in the query.php (which I think it is!)
Thank you so much in advance!
- The topic ‘Server Load on Massive WordPress Site’ is closed to new replies.