<?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; windows</title>
	<atom:link href="http://blog.jackrun.com/archives/tag/windows/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.jackrun.com</link>
	<description>busy to live or busy to die</description>
	<lastBuildDate>Thu, 05 Aug 2010 05:58:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>windows下安装wp-cache插件</title>
		<link>http://blog.jackrun.com/archives/277.html</link>
		<comments>http://blog.jackrun.com/archives/277.html#comments</comments>
		<pubDate>Thu, 28 Aug 2008 03:18:03 +0000</pubDate>
		<dc:creator>Peltason</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-cache]]></category>

		<guid isPermaLink="false">http://www.jackrun.com/?p=277</guid>
		<description><![CDATA[wp-cache 这个插件能够将 WordPress 的页面输出内容进行缓存，这样第二次访问该页面时就不必访问数据库，从而加快页面生成速度，并降低服务器负载。但很可惜这个插件是为 Unix/Linux 系统设计的，如果服务器是 Windows，该插件将会出现错误。在Windows下使用该插件需要做些修改。
1. 修改 wp-cache/wp-cache.php，找到 wp_cache_check_link() 函数，紧接着该函数的 global 变量声明加入下列语句：
return true;
该函数的功能是检查符号链接，而Windows系统不支持符号链接，所以加入 return true 让该函数短路。
2. 将 wp-cache/wp-cache-phase1.php 复制到 wp-content 下并改名为 advanced-cache.php。官方安装手册上要求使用 ln -s 命令建立符号链接，而Windows并不支持符号链接，只能直接复制了。
这样在插件面板中激活wp-cache，并在选项面板中 Enable Cache 即可。
另一个常见的问题就是 cache 不起作用，浏览任何页面 wp-content/cache 下也不会生成 cache 文件。很可能因为当前的主题末尾忘记使用 标记。修改主题的 footer.php 文件并在最后添上 即可
]]></description>
			<content:encoded><![CDATA[<p>wp-cache 这个插件能够将 WordPress 的页面输出内容进行缓存，这样第二次访问该页面时就不必访问数据库，从而加快页面生成速度，并降低服务器负载。但很可惜这个插件是为 Unix/Linux 系统设计的，如果服务器是 Windows，该插件将会出现错误。在Windows下使用该插件需要做些修改。</p>
<p>1. 修改 wp-cache/wp-cache.php，找到 wp_cache_check_link() 函数，紧接着该函数的 global 变量声明加入下列语句：</p>
<p>return true;</p>
<p>该函数的功能是检查符号链接，而Windows系统不支持符号链接，所以加入 return true 让该函数短路。</p>
<p>2. 将 wp-cache/wp-cache-phase1.php 复制到 wp-content 下并改名为 advanced-cache.php。官方安装手册上要求使用 ln -s 命令建立符号链接，而Windows并不支持符号链接，只能直接复制了。</p>
<p>这样在插件面板中激活wp-cache，并在选项面板中 Enable Cache 即可。</p>
<p>另一个常见的问题就是 cache 不起作用，浏览任何页面 wp-content/cache 下也不会生成 cache 文件。很可能因为当前的主题末尾忘记使用 标记。修改主题的 footer.php 文件并在最后添上 即可</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jackrun.com/archives/277.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
