Increasing WP-Cache performance for blogs with heavy commenting

December 29, 2007

Caching is the key to success - the more content you cache, the more visitors on the same hardware you can serve. Many Wordpress owners run wp-cache plugin to cache blog pages in files, rather than generating content on the fly - querying MySQL database. If you have a low usage that is fine, but if you have a medium load blog or getting Dugg/Slashdot effect - only tuning, optimization and proper caching will keep your blog up and running.

wp-cache will need to regenerate cache file every time a blog post receives a comment - performance is lost if the post receives heavy commenting. You can hack wp-cache plugin to expire cache for particular page only when cache expire time expires, not with every new comment.

Open the WP plugin directory - wp-cache plugin file: wp-cache-phase2.php

and comment out line:

add_action(’comment_post’, ‘wp_cache_get_postid_from_comment’, 0); 

// add_action(’comment_post’, ‘wp_cache_get_postid_from_comment’, 0); 

And you are set.

Comments are closed.