Since WordPress upgrade to version 3.1, there are some plugin compatibility issue for example DB Cache Reloaded. You may read my previous article DB Cache Reloaded not compatible with WordPress 3.1 as during plugin activation trigger an error: “DB Cache Reloaded Error: wpdb class is redefined, plugin cannot work!
Previous definition is at /home/xxxx/public_html/wp-includes/wp-db.php:52.”.
As the plugin developer not responded to any complain in forums. I took a step to take a look at the code. And i finally found what cause it and patch the code. I have installed in some of my testing blog. So far so good. This patch is tested only in WordPress 3.1 environment. I’m haven’t tested for prior WordPress 3.1.
As this modified is quick and dirty fixed, please test it in your test environment prior to use it in your production website.
1. If you have DB Cache Reloaded activated in wrapper mode, please deactivate the plugin.
2. Download the module from the link at the end of this article.
3. Upload the module to your server, overwrite the current file.
4. Activate the plugin, and enable it from the Setting.
Note: this is not an official release from the original developer. This patched is developed by me because i’m using DB Cache Reloaded in this blog and i want to upgrade to WordPress 3.1. Later i will make my own plugin which is rewrite from DB Cache Reloaded, and keep maintaining it for the community.
If you found any bugs or problem or issue or even want to say thanks, please use the comment box below.
This plugin has cost me hours of work, if you use it, please donate a token of your appreciation!
Update: Now DB Cache Reloaded Fix is availabe in WordPress Plugin Repository.
Update 25 October 2011: Release DB Cache Reloaded Fix v2.2.4.