<?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:series="http://unfoldingneurons.com/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
>

<channel>
	<title>Unquiet Desperation &#187; caching solution</title>
	<atom:link href="http://www.unquietdesperation.com/tag/caching-solution/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unquietdesperation.com</link>
	<description>To be awake is to be alive.</description>
	<lastBuildDate>Thu, 02 Sep 2010 02:26:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<!-- podcast_generator="Blubrry PowerPress/1.0.9" mode="advanced" entry="normal" -->
	<itunes:summary>The Mass of Men Lead Lives of Quiet Desperation. Where&#039;s the Fun in That?</itunes:summary>
	<itunes:author>Christopher T. Miller</itunes:author>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.unquietdesperation.com/UDLogo300.png" />
	<itunes:owner>
		<itunes:name>Christopher T. Miller</itunes:name>
		<itunes:email>codeshaman@gmail.com</itunes:email>
	</itunes:owner>
	<managingEditor>codeshaman@gmail.com (Christopher T. Miller)</managingEditor>
	<copyright>2006-2009</copyright>
	<itunes:subtitle>To be awake is to be alive.</itunes:subtitle>
	<image>
		<title>Unquiet Desperation &#187; caching solution</title>
		<url>http://www.unquietdesperation.com/UDLogo150.png</url>
		<link>http://www.unquietdesperation.com</link>
	</image>
	<itunes:category text="Society &amp; Culture" />
	<itunes:category text="Arts" />
		<item>
		<title>Cache Your WordPress Blog</title>
		<link>http://www.unquietdesperation.com/2008/04/23/cache-your-wordpress-blog/</link>
		<comments>http://www.unquietdesperation.com/2008/04/23/cache-your-wordpress-blog/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 09:30:30 +0000</pubDate>
		<dc:creator>Chris Miller</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[caching solution]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Jeff Atwood]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.unquietdesperation.com/site/?p=250</guid>
		<description><![CDATA[(Originally published on RefreshCleveland)

photo cr [...]]]></description>
			<content:encoded><![CDATA[<p><em>(Originally published on <a href="http://www.refreshcleveland.org">RefreshCleveland</a>)</em></p>

<div class="ccphoto"><a href="http://www.flickr.com/photos/8543109@N04/2109800709/" title="The power of microsoft" target="_blank"><img src="http://farm3.static.flickr.com/2171/2109800709_075d3962ee_m.jpg" alt="The power of microsoft" border="0" /></a><br /><small><a href="http://creativecommons.org/licenses/by-nc-nd/2.0/" title="Attribution-NonCommercial-NoDerivs License" target="_blank"><img src="http://www.unquietdesperation.com/site/wp-content/plugins/photo_dropper/images/cc.png" alt="Creative Commons License" border="0" width="16" height="16" align="absmiddle" /></a> <a href="http://www.photodropper.com/photos/" target="_blank">photo</a> credit: <a href="http://www.flickr.com/photos/8543109@N04/2109800709/" title="doyoukekko" target="_blank">doyoukekko</a></small></div>

<p>In the past few weeks, I&#8217;ve helped some of my friends move their WordPress blogs to new servers. One of them had a consistent problem with their host because WordPress was hogging cycles on the shared server.  We implemented the <a href="http://mnm.uib.es/gallir/wp-cache-2/">WP-Cache</a> plugin, and things got better in minutes.
<br/><br/></p>

<p><a href="http://www.codinghorror.com/">Jeff Atwood</a> has written a terrific article about the perils of using WordPress without caching.</p>

<blockquote>I&#8217;ve been thoroughly impressed with the community around WordPress, and the software itself is remarkably polished. That&#8217;s not to say that I haven&#8217;t run into a few egregious bugs in the 2.5 release, but on the whole, the experience has been good bordering on pleasant.
<br/><br/>
Or at least it was, until I noticed how much CPU time the PHP FastCGI process was using for modest little old blog.stackoverflow.com. </blockquote>

<p><span id="more-250"></span></p>

<p><a href="http://www.codinghorror.com/blog/archives/001105.html">Read the full article</a> if you have WordPress blog &#8212; even if you&#8217;re not technically inclined.  You&#8217;ll thank yourself later.</p>

<p>Caching is the smart way to handle any generated content. When you cache your content, a plugin or service will take the HTML generated by your blog and save it to a flat file. It&#8217;s just like taking a snapshot. The cached file will expire after a time, so that your content will remain fresh. It takes many less CPU cycles to serve flat file than to generate them from the database every time. This has the added benefit of speeding up your blog&#8217;s display time as well.</p>

<p>Consider your RSS feeds. While RSS is a great thing, every time someone hits your feed you are generating content from the database and serving it out to the world. Poorly behaved RSS readers will this your feed as often as every five minutes. For a worst case scenario, take the file size of your feed when generated, multiply it by the number of subscribers you have, and multiply that by 12. That&#8217;s how much bandwidth you could be using per hour for the feed alone. If you have a great number of items in your feed or are very popular you&#8217;ll eventually get a shutdown notice from your host or the site will simply shut down on it&#8217;s own, displaying a lovely error message to your audience.</p>

<p>To avoid downtime, use  <a href="http://mnm.uib.es/gallir/wp-cache-2/">WP-Cache</a> or <a href="http://ocaoimh.ie/wp-super-cache/">WP-SuperCache</a> to implement a quick caching solution. For an additional layer of protection, try using Feedburner for your feeds. It caches your feed for 30 minutes on their server, so you reduce the load on your server considerably. You&#8217;ll see your blog begin to behave, and you&#8217;ll get those creepy hosting admins off your case.</p>

<p><strong>Advanced Users:</strong> For those of you who have full control of your servers, look at using <a href="http://danga.com/memcached/">memcached</a> to handle the caching for the server. Less wear and tear on the disk, performs better for larger-scale projects than simple file caching. <a href="http://ryan.wordpress.com/2005/12/23/memcached-backend/">Check out Ryan&#8217;s post</a> on how to implement WordPress with memcached.</p>
 <p>Feel free to Flattr this post at <a href="http://flattr.com/" title="Flattr" target="_blank">flattr.com</a>, if you like it.</p> <p><a href="http://flattr.com/" title="Flattr" target="_blank"><img src="http://www.unquietdesperation.com/wp-content/plugins/flattrss/button-compact-static-100x17.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.unquietdesperation.com/2008/04/23/cache-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
