<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>ryo.com &#187; cacher</title>
	<atom:link href="http://www.ryo.com/tag/cacher/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ryo.com</link>
	<description>by Ryosuke Hosoi</description>
	<lastBuildDate>Sat, 19 Feb 2011 14:20:06 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.ryo.com/tag/cacher/feed/" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/><cloud domain='www.ryo.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>XCache for WordPressでトラブル</title>
		<link>http://www.ryo.com/2008/03/02/419/</link>
		<comments>http://www.ryo.com/2008/03/02/419/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 14:32:23 +0000</pubDate>
		<dc:creator>りょすけ</dc:creator>
				<category><![CDATA[IT関連]]></category>
		<category><![CDATA[cacher]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[xcache]]></category>

		<guid isPermaLink="false">http://www.ryo.com/2008/03/02/419/</guid>
		<description><![CDATA[photo credit: tyfn PHPのcacherをAPCからXCacheに変えたついでに、XCache for WordPressを入れてみたんですが、微妙なトラブルが発生。 管理画面で投稿記事を編集して、「保 [...]]]></description>
			<content:encoded><![CDATA[<p style="float: right; margin-left: 1em"><a href="http://www.flickr.com/photos/tyfn/2295278615/"><img src="http://farm4.static.flickr.com/3132/2295278615_b186ae1c18_m.jpg" alt="Wordpress bag" title="Wordpress bag" border="0" /></a><br />
<small><a href="http://www.photodropper.com/creative-commons/" title="creative commons"><img src="http://www.ryo.com/wp-content/plugins/photo_dropper/images/cc.png" alt="Creative Commons License" align="middle" border="0" height="16" width="16" /></a> <a href="http://www.photodropper.com/photos/">photo</a> credit: <a href="http://www.flickr.com/photos/tyfn/" title="tyfn">tyfn</a></small></p>
<p>PHPのcacherを<a href="http://pecl.php.net/package/APC">APC</a>から<a href="http://xcache.lighttpd.net/">XCache</a>に変えたついでに、<a href="http://neosmart.net/dl.php?id=12">XCache for WordPress</a>を入れてみたんですが、微妙なトラブルが発生。</p>
<p>管理画面で投稿記事を編集して、「保存して編集を続ける」を押すと、変更内容がリセットされちゃいます。</p>
<p>これは明らかにキャッシュが残っててクリアできてない・・・</p>
<p>どうやら「<a href="http://wordpress.rauru-block.org/index.php/1589">WordPress チューニング (Rauru Blog)</a>」を見てその気になって、get_posts()の中にキャッシュに入れるコードを追加してたのが原因だったようで、そこを削除したら直りました。<br />
しかし、別にそこでキャッシュするのは悪いことじゃないので、edit時にキャッシュ更新orクリアをしてやるべきですね。<br />
まあ、あんまり勝手にいじるのは良くないなってことで、戻しておくことにしました。</p>
<p>しかしこのあたりのコード、あまりにも気になるのでsvn trunkのを見たのですが、かなり書き直されてるので2.5に期待しときます。</p>
<h3  class="related_post_title">関連記事</h3><ul class="related_post"><li><a href="http://www.ryo.com/2008/02/27/405/" title="このサイトで使用しているWordPressプラグイン一覧">このサイトで使用しているWordPressプラグイン一覧</a></li><li><a href="http://www.ryo.com/2009/02/28/790/" title="All in One Adsense and YPN停止">All in One Adsense and YPN停止</a></li><li><a href="http://www.ryo.com/2008/03/10/440/" title="WP-LightPopのテスト">WP-LightPopのテスト</a></li><li><a href="http://www.ryo.com/2008/03/07/434/" title="WordPressのプラグインの実装でやるな！と思ったこと">WordPressのプラグインの実装でやるな！と思ったこと</a></li><li><a href="http://www.ryo.com/2008/03/04/422/" title="WordPressのTinyMCEがdivをpに変換する問題">WordPressのTinyMCEがdivをpに変換する問題</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ryo.com/2008/03/02/419/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.ryo.com/2008/03/02/419/" />
	</item>
	</channel>
</rss>

