<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>阅微堂 &#187; HTML</title>
	<atom:link href="http://zhiqiang.org/blog/tag/html/feed" rel="self" type="application/rss+xml" />
	<link>http://zhiqiang.org/blog</link>
	<description>数学、金融、计算机</description>
	<lastBuildDate>Wed, 23 May 2012 08:37:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>一个新的WordPress静态化插件cos-html-cache</title>
		<link>http://zhiqiang.org/blog/it/a-new-static-wordpress-plug-cos-of-cache-html.html</link>
		<comments>http://zhiqiang.org/blog/it/a-new-static-wordpress-plug-cos-of-cache-html.html#comments</comments>
		<pubDate>Sat, 02 Jun 2007 01:32:33 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[IT技术]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[WordPress插件]]></category>
		<category><![CDATA[静态化]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/599.html</guid>
		<description><![CDATA[博客 » IT技术 » HTML，WordPress插件，静态化 » 阅微堂是国内WordPress用户较早实现静态化的blog之一。之前，本站所用的是修改WP-Write HTML插件实现的静态化，不过这个插件已经没人维护，我也没时间弄这些玩意儿，所以对一般用户，要想实现静态化也比较麻烦，但现在有了一个新的选择cos-html-cache，目前版本1.0，适用于大多数WP用户，而且作者承诺维护并添加新的功能。 所谓静态...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/it">IT技术</a> » <a href="http://zhiqiang.org/blog/tag/html" rel="tag">HTML</a>，<a href="http://zhiqiang.org/blog/tag/wordpress%e6%8f%92%e4%bb%b6" rel="tag">WordPress插件</a>，<a href="http://zhiqiang.org/blog/tag/%e9%9d%99%e6%80%81%e5%8c%96" rel="tag">静态化</a> » </p><p>阅微堂是国内WordPress用户较早实现静态化的blog之一。之前，本站所用的是修改WP-Write HTML插件实现的静态化，不过这个插件已经没人维护，我也没时间弄这些玩意儿，所以对一般用户，要想实现静态化也比较麻烦，但现在有了一个新的选择<a href="http://www.storyday.com/html/y2007/958_cos-html-cache-10.html">cos-html-cache</a>，目前版本1.0，适用于大多数WP用户，而且作者承诺维护并添加新的功能。</p>
<p>所谓静态化就是生成了所有文章以及首页的HTML版本，每次访问的时候不需要读取数据库和进行php脚本运算了，所以能够极高的降低CPU占用率，加快访问速度，特别是你装的插件里面有大量类似这样的玩意儿的时候：</p>
<blockquote><p>add_filter("the_content", xxx);</p>
</blockquote>
<p>但只要你把这个插件装上，你就可以放心大胆的装各种各样的插件了，因为这些运算都是一次性的。</p>
<p>这个插件会在你发表新的文章，接到新的留言时，自动更新主页和相关文章的缓存，不用任何手动操作，强烈建议每个人都装上它。</p>
<p>WP-Cache也是一个缓存插件，但实现思路不太一样，下面这个图说明了WP-Cache和完全静态化插件有什么区别（来自<a href="http://www.storyday.com/html/y2007/948_wp-cache-is-not-effective-as-expected.html">wp-cache未必能有多大的效果</a>）：</p>
<p align="center"><img src="http://lh5.ggpht.com/china.cos/Rlf3m8N2U8I/AAAAAAAAAjg/392blJPwSFM/s400/cache.jpg"/> </p>
<p>注：某些针对single vistor的插件在此插件下会失效，<strike>pingback失效</strike>（在我这里失效了，但在其<a href="http://www.storyday.com">作者blog</a>那里能用，原因不明）。</p>
<p>[tags]静态化,HTML,插件[/tags]</p>
<div><h4>相关文章</h4><ul><li class='currentpost'><a href="http://zhiqiang.org/blog/it/a-new-static-wordpress-plug-cos-of-cache-html.html">一个新的WordPress静态化插件cos-html-cache</a></li><li ><a href="http://zhiqiang.org/blog/it/wordpress-accelerate-the-pace-of-pages-printed-in-the-generation-and.html">加快WordPress的页面生成和载入速度</a></li><li ><a href="http://zhiqiang.org/blog/it/add-a-download-page.html">为WordPress增加下载系统</a></li><li ><a href="http://zhiqiang.org/blog/it/algorithm-to-get-related-posts.html">相关文章的算法</a></li></ul></div>    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2007. | <a href="http://zhiqiang.org/blog/it/a-new-static-wordpress-plug-cos-of-cache-html.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/it/a-new-static-wordpress-plug-cos-of-cache-html.html#comments">22 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/it/a-new-static-wordpress-plug-cos-of-cache-html.html/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>

