A-A+

wordpress缓存插件:DB Cache Reloaded升级1.2版本

2009年10月08日 分享 评论 15 条 阅读 350 次

shareDB Cache Reloaded源于DB Cache插件,在DB Cache原作者停止更新后,另一位wordpress的爱好者继承并开发了DB Cache Reloaded。原理是通过建立数据库缓存,来减少数据库查询次数,从而达到加速blog访问速度的目的。

DB Cache Reloaded的安装与设置非常简单,只需解压并上传至wp-content/plugins/目录下,后台启用,并在设置页中选中ENABLE,在设置数据库缓存的更新时间就可以了。


如果一切顺利,你会在/wp-content/目录下,看见tmp高速缓存文件目录。在页面源码中也可以查阅到DB Cache Reloaded的工作状态,比如类似这样的代码:

<!-- footer END -->

<!-- Generated in 0.379 seconds. Made 7 queries to database and 62 cached queries. Memory used - 23.2MB -->
<!-- Cached by DB Cache Reloaded –>

DB Cache Reloaded之前发布的1.1版本,会与一些wordpress的分页导航插件,比如很多人使用的wp-PageNavi产生冲突,致使分页功能无法显示,好在作者已经及时的解决了bug,并更新到DB Cache Reloaded 1.2版本。

点此进入DB Cache Reloaded 主页 点此下载DB Cache Reloaded

1.2

  • Fix: queries were not cached starting from first not cached query;
  • Fix: all queries were cached in the same directory instead of dedicated subdirectories;
  • Fix: total row count calculation did not work for complex queries (usually observed as no pagination problem);
  • Added support for DBCR_SAVEQUERIES define to enable extended query logging (as compared to default SAVEQUERIES support)
1.1
  • Added Polish translation;
  • Added Italian translation (thanks Iacopo);
  • Show error in admin section when wpdb class already exists (this should not happen, but I got few reports about this);
  • Fix: do not cause fatal error when plugin is deleted manually without deactivating it first (in this case wp-content/db.php is left). Instead display error in admin section;
  • Added support for custom plugin directory;
  • Some performance improvements;
  • Show message in admin section when plugin is activated but caching is not enabled
1.0.1
  • Fix: statistics are not working
1.0
  • Took DB Cache 0.6 as a baseline;
  • Merged changes done in WordPress 2.9 for the wpdb class (this fixes annoying tags bug);
  • Cleaned up code, moved almost everything from global scope to class;
  • Secured settings page with nonces;
  • Switched to po/mo files for internationalisation

15 条留言  访客:0 条  博主:0 条

  1. 快乐岛博客

    10月29日已更新至Version: 1.4.2

    • 嗯,兼容wp2.8.5的更新。话说这个缓存插件的效果挺好的。

  2. 快乐岛博客

    这里:Expire a cached query after,你填的是几分钟?我想缓存时间太长也不好吧,暂时用2分钟。

    • 120,试过更长也没问题的。

  3. 快乐岛博客

    文章末尾这个“收藏至”功能如何实现?

    • 插件:Sociable

  4. yesureadmin

    马上试一下,发现你没用哦

    • 用过不短的时间,缓存效果其实还是挺好的,特别是侧栏的加载速度快很多。现在用的是WP Super Cache,配置麻烦了些。

  5. 剑书

    DB Cache Reloaded我一直在用,数据库查询次数大概降低50%左右。

    • @剑书, 嗯,缓存效果确实很明显的,侧边栏加载速度也会快不少。

  6. yayaus

    我用的的是DB Cache Reloaded Fix,不知道有没有什么效果。。这个插件实在是太搞了,要是下一个版本又要别人来更新,不知道该要怎么命名。。

    • 这个作者好像不更新了,最新的这个版本好像是国人代为修改的一版。

  7. yayaus

    另外你的编辑留言功能是怎么实现的呢?

    • 这个功能是主题作者在开发时原生带入的,我也不太清楚,不好意思哈。

  8. Free Network News

    WordPress数据库缓存插件:DB Cache Reloaded 空白页处理
    搜索网络发现DB Cache Reloaded 这个缓存插件,安装后居然后台和前台都无法显示,按照以往按照插件出错的处理方法也解决不了,直接删除插件文件夹中DB Cache Reloaded也不行。最后发现空白页处理的关键 在wp-content目录创建tmp缓存文件夹和db-config.ini及db.php也都需要删除后方能恢复正常。

    DB Cache Reloaded 这个插件跟Wp Super Cache是同一级别的缓存插件,现在这两个插件的作者都不怎么升级了。有些朋友和我一样升级到wordpress3.1使用DB Cache Reloaded 已经不兼容了。还好知更鸟把这个插件给升级了,而且增加了中文语言包,以后大家可以使用中文版的了,大家快去试试吧。我使用之后,浏览博客真的快多了。

    详细说明您也可以看看这里:http://www.songxiaoxiao.com/wordpress%E6%95%B0%E6%8D%AE%E5%BA%93%E7%BC%93%E5%AD%98%E6%8F%92%E4%BB%B6db-cache-reloaded-%E7%A9%BA%E7%99%BD%E9%A1%B5%E5%A4%84%E7%90%86.html

给我留言

Copyright © 风向吧 保留所有权利.   Theme  Ality

用户登录

分享到: