缓存类优化插件是wordpress程序使用率比较高类别的插件,缓存插件的主要用处是在访客的流量比较大的时候,开启缓存插件能够显著的降低服务器的资源消耗,提升网站的加载和浏览速度。但是,低流量的网站完全没有必要使用它。因为它的弊端在于,当你修改日志、修改widget、修改主题之后,效果不会立即看到,而需要在下一个缓存周期才能看到。因此建议,每日IP 500以下,PV 1000以下,不要使用缓存插件,否则得不偿失。
WP Super Cache
http://wordpress.org/extend/plugins/wp-super-cache/
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/
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/
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/
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/
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/
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的。