diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


How To: Improve Performance of WordPress Blogs

Most of highly trafficked and highly commented WordPress Blogs do rely upon some smart caching solution or another. However it may not be enough to prevent slowing down your server if your post(s) are heavily commented upon. This is because smart caching solutions re-create the cache whenever a new comment is posted.


  1. Download and Install Wp-Cache 2 plugin.
  2. Modify wp-cache-phase2.php by either making it comment or  deleting the line:
    add_action('comment_post', 'wp_cache_get_postid_from_comment', 0); 
  3. Set the cache expiration time to 2 hours or more. This can easily handle a slashdot effect without breaking a sweat.

The change in step 2 ensures that the pages are not regenerated everytime a new comment is posted. They are however regenerated after the expiration of cache. This time lag saves an enormous amount of sql query when a post is heavily commented.

How To, Improve Performance of WordPress Blogs

Share This Story, Choose Your Platform!

Get Latest News

Subscribe to Digital News Hub

Get our daily newsletter about the latest news in the industry.
First Name
Last Name
Email address
Secure and Spam free...