请注意,除非你非常熟悉WAMP,否则请不要在Windows server上使用此插件。如果一定要使用,发现生成的html不在正确的目录下,尝试添加这段代码,如果仍然无效,抱歉,我也无能为力。
另外,若要和新版本wordpress匹配,请一定安装最新版本。本插件的历史版本下载链接是:http://wordpress.org/extend/plugins/cos-html-cache/download/。
Note: If you are NOT very familiar with WAMP(Windows+Apache+MySql + PHP) do NOT use this plugin under windows server. other wise, if you find the plugin works unnormally, try to add the code shown bellows at the beginning of the cos-html-cache.php
if (!defined("BASE_PATH")) define('BASE_PATH', isset($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : substr($_SERVER['PATH_TRANSLATED'],0, -1*strlen($_SERVER['SCRIPT_NAME'])));
$_SERVER['DOCUMENT_ROOT'] = BASE_PATH;
———————————————-
**** 版本历史 ***
- 2007.09.21 19:52 bug 001 fixed ,由于该bug的存在,当访客访问不存在的html文件时,服务器将会在服务器对应的位置创建同名的文件;
- 2007.09.23 增加了删除指定文章缓存的功能,用户可以在后台手动指定文章的ID,或者文章的标题名来删除该文章的缓存;
- 2007.09.24 修复了无法在http://host/blog二级域名下使用的bug,请大家重新下载。
- 2008.02.21修正了后台批量删除缓存不删除首页缓存的bug;
- 2008.02.21修正了在数据库崩溃的情况下依然创建出不完整的cache文件,即如果在创建缓存的同时,数据库不可用,原来的版本将依然创建错误的静态文件出来;
- 2008.02.21可自定义是否缓存首页,打开cos-html-cache, 找到define(’IS_INDEX’,true),true表示缓存首页,将true改为false则不缓存首页;
- 2.7版本,修正了cookie的几个问题;
**** 概述****
cos-html-cache 将会大大地提高你wordpress的运行效率和载入速度。该插件会在页面第一次载入的时候产生和url对应的真正的html文件作为缓存,后面的运行将 会直接载入该html从而大大的提高了页面的效率。当页面内容发生变化时将会自动更新对应的页面,更新缓存的触发事件有:修改文章、删除文章、评论成功提 交,同时这些事件也将会更新与之相邻的文章。
cos-html-cache2.0和之前的版本相比大大的提高了速度,改进了缓存的机制,使之更加科学
**** description ****
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. Current version, cos-html-cache2.3, is a huge improvement over previous versions of cos-html-cache.
For English users, just Download Plugin and view the readme.txt closely. (read on …)