I’ve been a longtime fan of  WP Super Cache for WordPress.  It works as advertised and significantly lowers page generation times and stress on your WordPress database.  Today I compare it to a new caching plugin called DB Cache Plugin.  It claims to be faster because it caches the php calls rather than the entire page.  Do these claims hold water?

In order to run the test I added the follow code to the footer of my blog.
<!– <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. –>
This told me the number of database queries and time in seconds.

WP Super Cache vs DB Cache Plugin loading Turnipofpower.com

  • WP-Super-Cache: 15 queries. 0.512 seconds
  • DB Cache Plugin: 15 queries. 0.527 seconds
  • No Caching plugin: 15 queries. 0.531 seconds

WP Super Cache vs DB Cache Plugin loading Turnipofpower.com with the Bad Behavior Plugin deactivated.

  • WP-Super-Cache: 15 queries. 0.495 seconds
  • DB Cache Plugin: 15 queries. 0.490 seconds
  • No Caching plugin: 14 queries. 0.542 seconds

Conclusion: (please see updated note below) Both plugins performed similarly.  Conducting these tests at 4:am, my blog traffic was minimal.  At this time of night Bluehost is always fast, which is why the times without caching were so similar.  I checked to make sure both plugins were operating properly.  The DB-Cache plugin had cached files where they should be, and WP-Supercache displayed its proper “Cached page generated by WP-Super-Cache” message.  What seems odd to me is that the DB Cache Plugin is supposed to lower the number of queries and it didn’t. On the positive side, the new contender worked fine with both my WordPress admin and the Bad Behavior plugin turned on.   I’m hoping this plugin is updated soon fixing whatever issue prevents it from lowering the querie number.  Anyone else giving the DB Cache Plugin a test?

*NOTE:  These tests were performed using DB Cache version 0.2.   I have now performed the tests again using version 0.3.  See the results below:

DB Cache Plugin loading Turnipofpower.com with the Bad Behavior Plugin deactivated


  • DB Cache Plugin: 2 queries. 0.480 seconds
  • No Caching plugin: 15 queries. 0.489 seconds
  • That’s more like it.  Database queries reduced from 15 queries down to 2 queries.  This makes the plugin much more interesting, even if the actual load time isn’t dramatically different from super-cache.  If anyone would like to try a follow-up test, please compare a blog running both WP Super Cache AND WP Widget Cache together vs this new plugin.

    Post to Twitter Post to Plurk Plurk This Post Post to Yahoo Buzz Buzz This Post Post to Delicious Delicious Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to Reddit Reddit This Post Post to StumbleUpon Stumble This Post