<?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>Bruce &#187; Wp</title>
	<atom:link href="http://brucehan.com/archives/tag/wp/feed" rel="self" type="application/rss+xml" />
	<link>http://brucehan.com</link>
	<description>Something of a professional cynic.</description>
	<lastBuildDate>Sun, 04 Mar 2012 13:33:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WP缓存插件WordPress object-cache 设置</title>
		<link>http://brucehan.com/archives/1746</link>
		<comments>http://brucehan.com/archives/1746#comments</comments>
		<pubDate>Thu, 14 Oct 2010 14:36:29 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wp]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1746</guid>
		<description><![CDATA[Super Cache 太复杂。再者小博客也用不着全部静态化。WordPress Object Cache 是将耗时查询或者运算结果存储到缓存文件中，这样的好处显而易见，就是数据库的查询次数大大降低，访客打开页面的速度也就随之提升。如何开启它： 1.PHP 需要安装 Memcached 扩展，一般专业的WordPress主机都有安装； 2.编辑 wp-config.php 文件，添加如下代码： define(&#8216;ENABLE_CACHE&#8217;, true); 3.在空间上新建 /wp-content/cache 目录，权限改为 777； 4.下载 object-cache.php 文件，解压后上传至 /wp-content 目录。 OK，操作完成！刷新几次首页，然后看看Cache文件夹里是否生成文件。 开启缓存前可加入以下代码对比查看数据库查询次数 &#60;?php echo get_num_queries(); ?&#62; 2011年1月5日更新：最新版的WP Super Cache已经可以傻瓜操作了，非常赞！推荐使用。 转载自：木木木木木]]></description>
			<content:encoded><![CDATA[<p>Super Cache 太复杂。再者小博客也用不着全部静态化。WordPress Object Cache 是将耗时<a href="http://brucehan.com/archives/80"title="教你如何高效利用搜索引擎！" >查询</a>或者运算结果存储到缓存文件中，这样的好处显而易见，就是<a href="http://brucehan.com/archives/797"title="PHP+Mysql数据库连接范例！" >数据库</a>的查询次数大大降低，访客打开页面的速度也就随之提升。如何开启它：</p>
<p>1.<a href="http://brucehan.com/archives/250"title="PHP小实验！" >PHP</a> 需要<a href="http://brucehan.com/archives/239"title="PHP环境安装！" >安装</a> Memcached 扩展，一般专业的WordPress主机都有安装；</p>
<p>2.编辑 wp-config.php 文件，添加如下代码：</p>
<blockquote><p>define(&#8216;ENABLE_CACHE&#8217;, true);</p></blockquote>
<p>3.在空间上新建 /wp-content/cache 目录，权限改为 777；</p>
<p>4.下载 <a href="http://brucehan.com/bat/object-cache.zip">object-cache.php</a> 文件，解压后上传至 /wp-content 目录。</p>
<p>OK，操作完成！刷新几次<a href="http://brucehan.com/archives/333"title="设为首页代码！" >首页</a>，然后看看Cache文件夹里是否生成文件。</p>
<p>开启缓存前可加入以下代码对比查看数据库查询次数</p>
<blockquote><p>&lt;?php echo get_num_queries(); ?&gt;</p></blockquote>
<p><span id="more-1746"></span></p>
<p><span style="color: #ff0000;">2011年1月5日更新：最新版的WP Super Cache已经可以傻瓜操作了，非常赞！推荐使用。</span></p>
<p>转载自：<a href="http://immmmm.com/open-wordpress-object-cache.html">木木木木木</a></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5736529044108483";
/* 468x60, 创建于 11-9-6 */
google_ad_slot = "7344821931";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p> ]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1746/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP自动备份插件失效解决方案</title>
		<link>http://brucehan.com/archives/1745</link>
		<comments>http://brucehan.com/archives/1745#comments</comments>
		<pubDate>Wed, 13 Oct 2010 13:18:53 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wp]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1745</guid>
		<description><![CDATA[从我今年上半年将博客搬到国内空间之后，有几个插件就一直抽风，Pingback也失效了。 首先是WordPress Database Backup失效；接着XML-Sitemap停止自动更新。一开始我以为是换空间后导致的，可是wp能正常发送测试mail。一直纳闷，一直找不到原因，也就一直拖着。貌似自从那个时候到现在一直都没有备份。这会儿想起来突然有些后怕。丫的要是崩溃了一切就都灰飞烟灭了。 昨天偶然看到一哥们儿说：Wordpress2.9有Bug导致他也出现了插件失效的现象。接着一搜：我擦！2.9还TMD真多Bug。失效插件包括但不限于以上我例举的两个插件。于是立即登录后台发现：我的wp就停留在2.9……肯定是当初换空间的时候手贱升级了程序。于是先升级到3.0.1，再将失效后禁用已久的 Database Backup启用，看今天是否能正常收到备份文件。 果然，问题就出在2.9的Bug身上。下午华丽的收到了数据库自动备份文件。我打开phpmyadmin手动备份后比较过数据库文件大小，貌似是真的恢复了。这篇文章发布之后我会检查XML-Sitemap和Pingback是否正常。如果你也碰到了这种情况，那就立即升级吧。]]></description>
			<content:encoded><![CDATA[<p>从我今年上半年将博客搬到国内空间之后，有几个插件就一直抽风，Pingback也失效了。</p>
<p>首先是WordPress Database Backup失效；接着XML-Sitemap停止自动更新。一开始我以为是换空间后导致的，可是wp能正常发送测试mail。一直纳闷，一直找不到原因，也就一直拖着。貌似自从那个时候到现在一直都没有备份。这会儿想起来突然有些后怕。丫的要是崩溃了一切就都灰<a href="http://brucehan.com/archives/972"title="航空航天资料！" >飞</a><a href="http://brucehan.com/archives/755"title="上厕所的时候不要抽烟" >烟</a>灭了。 </p>
<p>昨天偶然看到一哥们儿说：Wordpress2.9有Bug导致他也出现了插件失效的现象。接着一搜：我擦！2.9还TMD真多Bug。失效插件包括但不限于以上我例举的两个插件。于是立即登录后台发现：我的wp就停留在2.9……肯定是当初换空间的时候手贱升级了程序。于是先升级到3.0.1，再将失效后禁用已久的 Database Backup启用，看今天是否能正常收到备份文件。</p>
<p> <span id="more-1745"></span>
<p>果然，问题就出在2.9的Bug身上。下午华丽的收到了<a href="http://brucehan.com/archives/797"title="PHP+Mysql数据库连接范例！" >数据库</a>自动备份文件。我打开<a href="http://brucehan.com/archives/250"title="PHP小实验！" >php</a>myadmin手动备份后比较过数据库文件大小，貌似是真的恢复了。这篇文章发布之后我会检查XML-Sitemap和Pingback是否正常。如果你也碰到了这种情况，那就立即升级吧。</p>
]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1745/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>订阅</title>
		<link>http://brucehan.com/archives/1600</link>
		<comments>http://brucehan.com/archives/1600#comments</comments>
		<pubDate>Wed, 14 Jul 2010 04:22:09 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Memory]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wp]]></category>

		<guid isPermaLink="false">http://brucehan.com/?p=1600</guid>
		<description><![CDATA[居然有28人通过谷歌阅读器订阅了我的博客。真难得！自动备份还是搞不定。 中午去哪里吃饭？其实我就是想测试一下新的feed…… 我恨我诚实。]]></description>
			<content:encoded><![CDATA[<p>居然有28人通过谷歌阅读器订阅了我的博客。真难得！自动备份还是搞不定。</p>
<p>中午去哪里吃饭？其实我就是想测试一下新的feed……</p>
<p>我恨我诚实。</p>
]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1600/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>将WP日志同步到Qzone</title>
		<link>http://brucehan.com/archives/1160</link>
		<comments>http://brucehan.com/archives/1160#comments</comments>
		<pubDate>Wed, 09 Dec 2009 14:34:39 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Qzone]]></category>
		<category><![CDATA[Wp]]></category>

		<guid isPermaLink="false">http://brucehan.com/archives/1160</guid>
		<description><![CDATA[当初我停Qzone的时候还特意写了个封条。尝试关闭空间几次，失败了。索性就一直让它锁着。最近有几个朋友询问我的空间密码……我很无语，即便是我将QQ签名换成了博客地址，还是没办法满足他们。那么干脆，就将WP日志同步到Qzone吧。皆大欢喜…… 总所周知，QQ 的服务是不会有 API 的，但是如何同步到 Qzone 呢？这里的过程有点曲折，由于 Qzone 支持通过你的 QQ 邮箱发布，而 QQ 邮箱有支持 SMTP 协议，而 WordPress 所包含的 PHPMailer 类可以使用 SMTP 发邮件，所以我们可以通过使用 PHPMailer 同步 WordPress 博客日志到 Qzone。 首先我们可以通过下面的函数登录 QQ 邮箱并给 Qzone 发邮件（你需要首先打开 QQ 邮箱的 SMTP 功能）。 其中需要把 $qq_number 和 $qq_password 设置成你的 QQ 号码和密码。 然后我们就可以通过 publish_post 这个 WordPress Hook，当发布日志的时候同步吧日志标题和内容同步到 Qzone。 总结下： 打开 QQ 邮箱的 SMTP 功能。 下载同步到 [...]]]></description>
			<content:encoded><![CDATA[<p>当初我停<a href="http://brucehan.com/archives/1160"title="Wp" >Qzone</a>的时候还特意写了个封条。尝试关闭空间几次，失败了。索性就一直让它锁着。最近有几个朋友询问我的空间密码……我很无语，即便是我将QQ签名换成了博客地址，还是没办法满足他们。那么干脆，就将WP日志同步到Qzone吧。皆大欢喜……</p>
<p>总所周知，QQ 的服务是不会有 API 的，但是如何同步到 Qzone 呢？这里的过程有点曲折，由于 Qzone 支持通过你的 QQ <a href="http://brucehan.com/archives/865"title="QQ邮箱不听话了！" >邮箱</a>发布，而 QQ 邮箱有支持 SMTP 协议，而 WordPress 所包含的 <a href="http://brucehan.com/archives/250"title="PHP小实验！" >PHP</a>Mailer 类可以使用 SMTP 发邮件，所以我们可以通过使用 PHPMailer 同步 WordPress 博客日志到 Qzone。</p>
<p>首先我们可以通过下面的函数登录 QQ 邮箱并给 Qzone 发邮件（你需要首先<a href="http://service.mail.qq.com/cgi-bin/help?subtype=1&amp;&amp;no=166&amp;&amp;id=28">打开 QQ 邮箱的 SMTP 功能</a>）。<br />
其中需要把 <code>$qq_number</code> 和 <code>$qq_password</code> 设置成你的 QQ 号码和密码。</p>
<p>然后我们就可以通过 <code>publish_post</code> 这个 WordPress Hook，当发布日志的时候同步吧日志标题和内容同步到 Qzone。<span id="more-1160"></span><br />
总结下：</p>
<ol>
<li><a href="http://service.mail.qq.com/cgi-bin/help?subtype=1&amp;&amp;no=166&amp;&amp;id=28">打开 QQ 邮箱的 SMTP 功能</a>。</li>
<li>下载同步到 Qzone 插件：<a href="http://code.google.com/p/qzone/downloads/list">WP2Qzone</a>。</li>
<li>上传到 WordPress 插件目录中下并激活。</li>
<li>把插件中的 <code>$qq_number</code> 和 <code>$qq_password</code> 设置成你的 QQ 号码和密码。</li>
<li>这样只要你一发布日志就会自动更新到 Qzone 中。</li>
</ol>
<p><a href='http://brucehan.com/archives/1160#SID1160_1_tgl' title='Visit blog to check out this spoiler'>[[Visit blog to check out this spoiler]]</a></p>
<p>同步方法借鉴于：<a href="http://fairyfish.net/2009/12/04/wp-qzone/">我爱水煮鱼</a></p>
]]></content:encoded>
			<wfw:commentRss>http://brucehan.com/archives/1160/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

