WordPress performance

Today I’ve been fiddling around to improve the performance of my blog. I noticed consistent loading times of around 2 seconds per page. I found this unacceptable and dove into google to improve this. After reading a lot about some of the caching plugins for WordPress, like W3 Total Cache and WP Super Cache, I found that these plugins require lots of configuration and do not offer the speed improvement wanted.

In most cases the biggest performance improvement can simply be reached by caching the database queries, which is exactly what DB Cache Reloaded Fix does. No fancy configuration which takes you days, just enable and forget about it. The loading times of my blog now dropped from 1.6+ seconds to 0.2 seconds.

Edit: I found out part of the problem was that upon initial loading after a long time of no visits the wordpress-cron (wp-cron) system would kick in and keep executing for 15 seconds before returning the page. Since i manage my server myself i was able to disable the wp-cron system and setup a ‘real’ cron job. I found out about this using the xdebug php profiling tool.
Disable the wp-cron by adding this to wp-config.php: define(‘DISABLE_WP_CRON’, true); and add this line to your crontab: */10 * * * * wget http://site/wp-cron.php > /dev/null 2>&1