<?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>Nakatta blog &#187; WP-Cache</title>
	<atom:link href="http://blog.nakatta.net/archives/tag/wp-cache/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.nakatta.net</link>
	<description>日々の出来事をただ書き綴る</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:40:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.nakatta.net/archives/tag/wp-cache/feed" />
		<item>
		<title>WP-Cacheプラグイン導入</title>
		<link>http://blog.nakatta.net/archives/2008/12/post_333.html</link>
		<comments>http://blog.nakatta.net/archives/2008/12/post_333.html#comments</comments>
		<pubDate>Thu, 11 Dec 2008 14:48:49 +0000</pubDate>
		<dc:creator>tada</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[ktai style]]></category>
		<category><![CDATA[WP-Cache]]></category>
		<category><![CDATA[プラグイン]]></category>

		<guid isPermaLink="false">http://muda.info/?p=333</guid>
		<description><![CDATA[				どーもムダブログの表示が遅いので、なんとかしようと「WP-Cache」プラグインを導入。
				Wordpressは表示が遅いとよく言われます。
				アクセスがある度にページを動的生成する仕組みのためしょう [...]]]></description>
			<content:encoded><![CDATA[				<p>どーもムダブログの表示が遅いので、なんとかしようと「<a href="http://mnm.uib.es/gallir/wp-cache-2/">WP-Cache</a>」プラグインを導入。<br />
				Wordpressは表示が遅いとよく言われます。<br />
				アクセスがある度にページを動的生成する仕組みのためしょうがないところ。<br />
				エントリーが増えてきたらそれはそれでアドバンテージがあるんですが。<br />
				MovableTypeとか標準は静的ファイルで表示する半面、再構築が結構手間ですからね。</p>
				<p>…と、前置きはこれぐらいにして導入メモ。<br />
				<span id="more-568"></span><br />
				そのまま有効にすると「<a href="http://wppluginsj.sourceforge.jp/ktai_style/">Ktai Style</a>」と競合します。<br />
				なので少し作業が必要。</p>
				<p>まず「<a href="http://mnm.uib.es/gallir/wp-cache-2/">WP-Cache</a>」からダウンロード。</p>
				<p>解凍したら中にある「wp-cache-config-sample.php」を「wp-cache-config.php」にリネームしてコピー。</p>
				<pre name="code" class="php" style="margin:18px 0;">
&lt;?php
/*
WP-Cache Config Sample File

See wp-cache.php for author details.
*/

$cache_enabled = false; //Added by WP-Cache Manager
$cache_max_time = 3600; //in seconds
//$use_flock = true; // Set it tru or false if you know what to use
$cache_path = ABSPATH . &#039;wp-content/cache/&#039;;
$file_prefix = &#039;wp-cache-&#039;;

// Array of files that have &#039;wp-&#039; but should still be cached
$cache_acceptable_files = array( &#039;wp-atom.php&#039;, &#039;wp-comments-popup.php&#039;, &#039;wp-commentsrss2.php&#039;, &#039;wp-links-opml.php&#039;, &#039;wp-locations.php&#039;, &#039;wp-rdf.php&#039;, &#039;wp-rss.php&#039;, &#039;wp-rss2.php&#039;);

$cache_rejected_uri = array(&#039;wp-&#039;);
$cache_rejected_user_agent = array ( 0 =&gt; &#039;bot&#039;, 1 =&gt; &#039;ia_archive&#039;, 2 =&gt; &#039;slurp&#039;, 3 =&gt; &#039;crawl&#039;, 4 =&gt; &#039;spider&#039;);

if (file_exists(ABSPATH. &#039;wp-content/plugins/ktai_style/patch-wpcache.php&#039;)) {
	include ABSPATH. &#039;wp-content/plugins/ktai_style/patch-wpcache.php&#039;;
}

// Just modify it if you have conflicts with semaphores
$sem_id = 5419;

if ( &#039;/&#039; != substr($cache_path, -1)) {
	$cache_path .= &#039;/&#039;;
}

?&gt;
</pre>
				<p>20行目のところに３行追加。</p>
				<p>つまり、$cache_rejected_user_agentのところの下に</p>
				<pre name="code" class="php" style="margin:18px 0;">
if (file_exists(ABSPATH. &#039;wp-content/plugins/ktai_style/patch-wpcache.php&#039;)) {
	include ABSPATH. &#039;wp-content/plugins/ktai_style/patch-wpcache.php&#039;;
}
</pre>
				<p>を追加。</p>
				<p>で、その「wp-cache-config.php」をwp-contentフォルダ直下においてプラグインを有効にする。</p>
				<p>以上です。</p>
				<p>一度キャッシュされると多少は体感速度変わる…かな<img src="http://blog.nakatta.net/wp-content/plugins/ktai_style/pics/SA/coldsweats01.gif" alt="(^_^;" style="border:0 none;" /><br />
				とりあえず使ってみます<img src="http://blog.nakatta.net/wp-content/plugins/ktai_style/pics/SA/punch.gif" alt="[パンチ]" style="border:0 none;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nakatta.net/archives/2008/12/post_333.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.nakatta.net/archives/2008/12/post_333.html" />
	</item>
	</channel>
</rss>

