<?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>Fri, 31 Oct 2014 14:53:43 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
<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 class="brush: php; title: ; notranslate">
&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 . 'wp-content/cache/';
$file_prefix = 'wp-cache-';

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

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

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

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

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

?&gt;
</pre>
				<p>20行目のところに３行追加。</p>
				<p>つまり、$cache_rejected_user_agentのところの下に</p>
				<pre class="brush: php; title: ; notranslate">
if (file_exists(ABSPATH. 'wp-content/plugins/ktai_style/patch-wpcache.php')) {
	include ABSPATH. 'wp-content/plugins/ktai_style/patch-wpcache.php';
}
</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="(^_^;" class="pictogram" style="border:0 none;" /><br />
				とりあえず使ってみます<img src="http://blog.nakatta.net/wp-content/plugins/ktai-style/pics/SA/punch.gif" alt="[パンチ]" class="pictogram" 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>
