Author Topic: wordpress插件之缓存类插件总结与点评  (Read 3625 times)

Offline 西华秦

  • 版主
  • 超级会员
  • *****
  • Posts: 2237
  • 评价: +5/-214
    • View Profile
    • 烙印
wordpress插件之缓存类插件总结与点评
« on: April 12, 2011, 10:00:50 pm »
缓存类插件是wordpress的比较高级的一类wordpress插件,它的作用是当你博客的流量比较大的时候,开缓存插件能够显著的降低服务器的资源消耗,加快网站的访问速度。但是,低流量的网站完全没有必要使用它。因为它的弊端在于,当你修改日志、修改widget、修改wordpress主题之后,效果不会立即看到,而需要在下一个缓存周期才能看到。老五建议,每日IP 500以下,PV 1000以下,不要使用缓存插件,否则得不偿失。

WP Super Cache

http://wordpress.org/extend/plugins/wp-super-cache/

Quote
This plugin generates static html files from your dynamic WordPress blog. After a html file is generated your webserver will serve that file instead of processing the comparatively heavier and more expensive WordPress PHP scripts.

WP Super Cache是wordpress缓存类插件的龙头老大。开启之后,它会生成静态HTML文件,从而达到缓存的目的。它的效果非常显著。

Hyper Cache

http://wordpress.org/extend/plugins/hyper-cache/

Quote
Hyper Cache is a new cache system for WordPress, specifically written for people which have their blogs on low resources hosting provider (cpu and mysql).

Hyper Cache和WP Super Cache的实力不相上下,同样会进行HTML静态化处理。也有很多朋友推崇。

DB Cache

http://wordpress.org/extend/plugins/db-cache/

Quote
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.

DB Cache的缓存方式就和前两位大师有些不一样。它的作用是是缓存数据库连接的query,而不会进行页面的缓存。也就是说,所有用到数据库连接的地方,从数据库读出的数据,都会被缓存。它的效果也很不错。一般能降低十多个query数。但不太好的地方是,在后台的query也会被缓存,这样当你进行一些查看、修改操作时,会出现莫名其妙的明明已经修改却没有变化的怪事。那就是db cache的功劳了。

Autoptimize

http://wordpress.org/extend/plugins/autoptimize/

Quote
Autoptimize makes optimizing your site really easy. It concatenates all scripts and styles, minifies and compresses them, adds expires headers, caches them, and moves styles to the page head, and scripts to the footer. It also minifies the HTML code itself, making your page really lightweight.

Autoptimize又是自成一派。它把所有JS, css进行压缩,并调整代码的顺序。Autoptimize会把整个页面的size大大缩小,从而达到加速访问的目标。

cos-html-cache

http://wordpress.org/extend/plugins/cos-html-cache/

Quote
cos-html-cache is an extremely efficient WordPress page caching plugin designed to make your WordPress site much faster and more responsive. Based on URL rewriting, the plugin will automatically generate real html files for posts when they are loaded for the first time, and automatically renew the html files if their associated posts are modified.

cos-html-cache是国人的产品,它能够完全的实现静态化。但有人反应过一些问题,比如内建的搜索失效,分页无法静态化,trackback也是.html/trackback,都出现404, 有时无法评论,post-views无法使用的情况。所以还期待进一步完善。

WP Widget Cache

http://wordpress.org/extend/plugins/wp-widget-cache/

Quote
WP Widget Cache can cache the output of your blog widgets. Usually it will significantly reduce the SQL queries to your database and speed up your site.

如果你的博客边栏很少改动的话,WP Widget Cache会是一个很好的助手。它专门用来缓存widget的。

Batcache

http://wordpress.org/extend/plugins/batcache/

Quote
Batcache uses Memcached to store and serve rendered pages. It's not as fast as Donncha's WP-Super-Cache but it can be used where file-based caching is not practical or not desired.

这个是比较高端的缓存插件了,human慎用, geek跟上。

先总结这些,希望大家热烈补充!

form:http://www.wpcourse.com/wordpress-cache-plugin-summary.html

Offline Ksky

  • 中级会员
  • ***
  • Posts: 1391
  • 评价: +4/-38
  •  Geek
    • View Profile
    • 何必呢
Re: wordpress插件之缓存类插件总结与点评
« Reply #1 on: April 12, 2011, 10:29:07 pm »
只用过WP Super Cache,挺好用的

Offline 西华秦

  • 版主
  • 超级会员
  • *****
  • Posts: 2237
  • 评价: +5/-214
    • View Profile
    • 烙印
Re: wordpress插件之缓存类插件总结与点评
« Reply #2 on: April 13, 2011, 01:03:37 am »
目前我也是用的wp super cache, ::)

Offline jitler

  • 中级会员
  • ***
  • Posts: 1850
  • 评价: +2/-13
  • 性别男,爱好女。
    • View Profile
    • 江南博客
Re: wordpress插件之缓存类插件总结与点评
« Reply #3 on: April 13, 2011, 04:57:29 pm »
只用过第一个~!
江南网志
我不支持的言论,但我坚决捍卫你发言的权利!

Offline 西华秦

  • 版主
  • 超级会员
  • *****
  • Posts: 2237
  • 评价: +5/-214
    • View Profile
    • 烙印
Re: wordpress插件之缓存类插件总结与点评
« Reply #4 on: April 13, 2011, 06:47:27 pm »
其实cos-html-cache也不错

Offline zilla

  • 中级会员
  • ***
  • Posts: 652
  • 评价: +4/-196
    • View Profile
Re: wordpress插件之缓存类插件总结与点评
« Reply #5 on: April 13, 2011, 09:52:47 pm »
这篇“转帖”不注意看还没看出来有标注转帖。

再说,这篇文章也太out了吧,db cache这个都停了多久了还在介绍?

Offline tiger

  • 新会员
  • Posts: 6
  • 评价: +0/-0
    • View Profile
Re: wordpress插件之缓存类插件总结与点评
« Reply #6 on: April 18, 2011, 08:54:28 am »
只用过第一个。博客流量 不到100 , 谢谢提示,我该停了它了。