WordPress
Майстер класи WordPress
DB Cache plugin
The fastest cache engine for WordPress, that produces cache of database queries with easy configuration.
Description
This plugin caches every database query with given lifetime. It is much faster than other html caching plugins and uses less disk space for caching.
I think you’ve heard of WP-Cache or WP Super Cache, they are both top plugins for WordPress, which make your site faster and responsive. Forget about them – with DB Cache your site will work much faster and will use less disk space for cached files. Your visitors will always get actual information in sidebars and server CPU loads will be as low as posible.
See the DB Cache homepage for further information.
Installation
1. You should upload the db-cache folder to your wp-content/plugins
2. Go to your Plugins page and activate “DB Cache”
3. Now go to Settings->DB Cache and enable caching of DB queries. The plugin will create wp-content/tmp folder and db.php file for serving cached queries in wp-content folder.
That’s all! Enjoy the speed of loading pages.
Frequently Asked Questions
How do I know my blog is being cached?
Check your cache directory wp-content/tmp/ for cache files.
How can I ensure of reducing server usage?
View the source of your site page, there maybe some code like this at the foot:
<!– 00 queries. 00 seconds. –>
If not, please put these codes in your footer template:
<!– <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. –>
After using the DB Cache, I think you’ll find the number of ‘queries’ reducing a lot.
Why is DB Cache better than WP Super Cache?
This plugin is based on a fundamentally different principle of caching queries to database instead of full pages, which optimizes WordPress from the very beginning and uses less disk space for cache files because it saves only useful information.
It saves information separately and also caches hidden requests to database.
Troubleshooting
Make sure wp-content is writeable by the web server. If not you’ll need to chmod wp-content folder for writing and also config.ini file in plugin folder.
How do I uninstall DB Cache?
1. Disable it at Settings->DB Cache page. The plugin will automatically delete all cache files.
2. Deactivate it at plugins page.
Other Notes
Updates
Updates to the plugin will be posted here and the Ukrainian WordPress will always link to the newest version.
Thanks
I would like to thank Lviv for giving me the idea for this and RKG for support.
Download
Downloaded a total of 3230 times


[...] a link on Delicious. DB Cache plugin – WordPress Escrito por NeKRoMaNT en: General [...]
[...] DB Cache para realizar la caché de la base de datos. [...]
[...] Sito Ufficiale [...]
Is there a problem if I use this plugin with WP Super Cache? I’m using WP Super Cache and don’t want to throw it. Thank you.
When a user registers, he is not able to login for the time dbcache is cached, system gives a message of username not exists.
What can I do to avoid this delay.
Hi to all,
good plugin…small problem, with wordpress 2.8 if cache is active once post new article not show tags, detai here http://wordpress.org/support/topic/279132 (section “Tags are not saved”).
please correct, very good plugin ;)
Yuri
Hi Dmitry,
Thanks for your awesome plugin. I wanted to drop by and report the Wordpress 2.8 bug with tags as above. Sorry to complain, but really hope you get chance to fix this soon.
Eris
[...] 总体来说是按照数据库的访问来缓存的,速度还在测试中 有兴趣可以到: DB Cache homepage 这里看看 记得安装完后开启插件 [...]
[...] a better plug in, its called DB Cache and it treats the root cause rather than a work around. Here is the performance improvement on my [...]
[...] alcuni dei migliori plugin per Wordpress che alleggeriscono notevolmente il carico del server: DB Cache e Hyper Cache. Combinati assieme trasformeranno il vostro blog in una scheggia, li consiglio a [...]
Hello, I was wondering if you have any plans to update this plugin or not.
[...] atrás. Así que, en este consejo, usaremos tres plugins, el WP- Caché, el WP Widget Caché y el DB Caché, que conjuntamente hacen una barrera infranqueable para la [...]
[...] Lösung, wie man hier Zeit sparen kann bin ich auf ein interessantes Wordpress Plugin namens DB-Cache gestossen. Dieses kleine und tolle Plugin merkt sich die einzelnen Datenbankabfragen, die bei einem [...]
Hi Dmitri,
your plugin was the best caching solution for my site and I’m really interested in getting it working again.
Should I wait or did you stop development?
Daniel
I noticed that though the actual number of DB queries after enabling this plugin is less, the processing time seems to be higher.
Plugin Disabled:
Plugin Enabled:
Any thoughts on why I’m seeing this?
Plugin Disabled:
Generated in 6.496 seconds. Made 73 queries to database and cached queries. Memory used – 2.07MB
Plugin Enabled:
Generated in 13.485 seconds. Made 33 queries to database and 41 cached queries. Memory used – 2.07MB
I’d like to make a few suggestions:
1. Not to cache admin functions. Right now mysql queries made by the admin CP are being cache. It makes editing your site hard.
2. Include option for unlimited expiry of the cache and update cache only when new posts are made. This way you reduce the number of times cache is refreshed maximally.
[...] DB Cache – Now I dont use a caching plugin (they just seem to break this site!) however this seemed to work wonders; It reduced database calls from the front page from 47 to 22. That is a 50%+ benefit!! (I used debug-queries plugin to check…its also useful to find those bad sql queries). [If your having consistent high CPU issues I suggest you have a quick look at Michael Latest series] [...]
I wonder if this plugin if necessary, if you already use the query_cache at the MySQL-Server?
Sounds like both do the same job?
[...] pouco tempo li no todoWp sobre um plugin chamado DB-Cache, capaz de cachear as consultas do banco de dados com os resultados que podem ver na imagem superior [...]
[...] | DB Cache Via | Todo WP Te gusto este articulo? Suscribete al Feed de Codigo Geek via RSS o via Email y [...]
Hi dimitri, i put the plugin, activate, but when i see the code apears this
0 cached queries?
what i´m doing wrong
thanks
Hi, I have deactivated this plugins from my blogs because it give error on updated feed posts and cooment, I can’t edit something like tag, comment, etc also. Please update it with new version.
I wish I had a cool blog like yours. I would love to start one myself with Wordpress but I’m affraid I’d give it up too soon ^^’
Your plugin don’t run correctly with admin zone in wordpress. Your plugin cache comments edit and suggest tags, … and don’t run correctly. I desactivate for run ok.