<?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>MaisonBisson.com &#187; memcached</title>
	<atom:link href="http://maisonbisson.com/blog/post/tag/memcached/feed/" rel="self" type="application/rss+xml" />
	<link>http://maisonbisson.com</link>
	<description>A bunch of stuff I would have emailed you about.</description>
	<lastBuildDate>Sat, 14 Nov 2009 20:14:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fixing Batcache to Send The Correct Content-Type Header</title>
		<link>http://maisonbisson.com/blog/post/13773/fixing-batcache-to-send-the-correct-content-type-header/</link>
		<comments>http://maisonbisson.com/blog/post/13773/fixing-batcache-to-send-the-correct-content-type-header/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 17:19:12 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[batcache]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/?p=13773</guid>
		<description><![CDATA[
I&#8217;m a fan of Batcache, the Memcached-based WordPress full-page cache solution, but I&#8217;ve discovered that it ignores the content-type header set when the page is initially generated and re-sends all content with content-type: text/html. I posted a note about this at the WordPress support forums, but then I realized what the problem was: apache_response_headers() doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-13773"><!-- &nbsp; --></abbr>
<p>I&#8217;m a fan of <a href="http://wordpress.org/extend/plugins/batcache/" title="WordPress › Batcache « WordPress Plugins">Batcache</a>, the Memcached-based WordPress full-page cache solution, but I&#8217;ve discovered that it ignores the <code>content-type</code> header set when the page is initially generated and re-sends all content with <code>content-type: text/html</code>. I <a href="http://wordpress.org/support/topic/263161" title="WordPress › Support » Batcache ignores content type header, sends everything as text/html">posted a note about this</a> at the WordPress support forums, but then I realized what the problem was: <a href="http://php.net/apache_response_headers" title="PHP: apache_response_headers - Manual"><code>apache_response_headers()</code></a> doesn&#8217;t return the content type, but <a href="http://php.net/headers_list" title="PHP: headers_list - Manual"><code>headers_list()</code></a> does.</p>
<p>The solution is to replace <code>apache_response_headers()</code> with <code>headers_list()</code> <a href="http://plugins.trac.wordpress.org/browser/batcache/trunk/advanced-cache.php#L93" title="/batcache/trunk/advanced-cache.php – WordPress Plugin Repository">in the code</a>, though <code>headers_list()</code> is PHP 5+ only, so it might be a while before we see a change like this committed. Still, I&#8217;ll shamelessly tag <a href="http://andy.wordpress.com/" title="Andy Skelton">Andy Skelton</a> (Batcache&#8217;s author) on it.</p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/13773/fixing-batcache-to-send-the-correct-content-type-header/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>5,848 (max), 656 (avg) MySQL Queries Per Second</title>
		<link>http://maisonbisson.com/blog/post/13456/5848-max-656-avg-mysql-queries-per-second/</link>
		<comments>http://maisonbisson.com/blog/post/13456/5848-max-656-avg-mysql-queries-per-second/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 05:00:33 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Dispatches]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[batcache]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[scriblio]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/?p=13456</guid>
		<description><![CDATA[

The above graph is far from typical, but I love that the box (the top one in this picture) can do the job when it needs to. This activity is a result of bulk record imports, web activity results in relatively little database traffic due to my use of Memcached and Batcache.
]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-13456"><!-- &nbsp; --></abbr>
<p><a title="5,848 (max), 656 (avg) MySQL Queries Per Second by misterbisson, on Flickr" href="http://www.flickr.com/photos/maisonbisson/3290635584/"><img src="http://farm4.static.flickr.com/3549/3290635584_af00ed2ef3.jpg" alt="5,848 (max), 656 (avg) MySQL Queries Per Second" width="500" height="72" /></a></p>
<p>The above graph is far from typical, but I love that the box (<a href="http://flickr.com/photos/scriblio/388446468/">the top one in this picture</a>) can do the job when it needs to. This activity is a result of bulk record imports, web activity results in relatively little database traffic due to my use of <a href="http://www.danga.com/memcached/">Memcached</a> and <a href="http://wordpress.org/extend/plugins/batcache/">Batcache</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/13456/5848-max-656-avg-mysql-queries-per-second/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing memcached On CentOS/RHEL</title>
		<link>http://maisonbisson.com/blog/post/12440/installing-memcached-on-centos/</link>
		<comments>http://maisonbisson.com/blog/post/12440/installing-memcached-on-centos/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 01:17:15 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[step by step]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/?p=12440</guid>
		<description><![CDATA[
Using info from CentOS forums, Sunny Walia and Ryan Boren, here&#8217;s how I got memcached running on my Dotster VPS:
Install libevent:

wget http://www.monkey.org/~provos/libevent-1.3e.tar.gz
tar zxvf libevent-1.3e.tar.gz
cd libevent-1.3e
&#160;
./configure
make
make install

Install memcached

wget http://danga.com:80/memcached/dist/memcached-1.2.5.tar.gz
tar zxvf memcached-1.2.5.tar.gz
cd memcached-1.2.5
&#160;
./configure
make
make install

We will start the server to use 30 megs of ram (-m 30), listen on ip 127.0.0.1 (-l 127.0.0.1) and run on port 11211 [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-12440"><!-- &nbsp; --></abbr>
<p>Using info from <a title="www.centos.org - Forums - CentOS 4 - Server Support - MemCached" href="http://www.centos.org/modules/newbb/viewtopic.php?post_id=26551&amp;topic_id=7975">CentOS forums</a>, <a title="Learn and Share" href="http://crazytoon.com/2008/01/20/memcached-how-do-you-install-memcached-centos-64-bit-linux-redhat-fedora/">Sunny Walia</a> and <a title="Memcached Backend « Ryan on WordPress" href="http://ryan.wordpress.com/2005/12/23/memcached-backend/">Ryan Boren</a>, here&#8217;s how I got memcached running on my <a href="http://www.anrdoezrs.net/click-2406739-10447876">Dotster VPS</a>:</p>
<p>Install libevent:</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">wget http://www.monkey.org/~provos/libevent-1.3e.tar.gz
tar zxvf libevent-1.3e.tar.gz
cd libevent-1.3e
&nbsp;
./configure
make
make install</pre></div></div>

<p>Install memcached</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">wget http://danga.com:80/memcached/dist/memcached-1.2.5.tar.gz
tar zxvf memcached-1.2.5.tar.gz
cd memcached-1.2.5
&nbsp;
./configure
make
make install</pre></div></div>

<p>We will start the server to use 30 megs of ram (-m 30), listen on ip 127.0.0.1 (-l 127.0.0.1) and run on port 11211 (-p 11211) as user &#8216;nobody&#8217; (-u nobody):</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">memcached -u nobody -d -m 30 -l 127.0.0.1 -p 11211</pre></div></div>

<p>Get an error?</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">memcached: error while loading shared libraries: libevent-1.3e.so.1: cannot open shared object file: No such file or directory</pre></div></div>

<p>Show it the path to the library:</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/12440/installing-memcached-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Memcached and Wordpress</title>
		<link>http://maisonbisson.com/blog/post/11489/memcached-and-wordpress/</link>
		<comments>http://maisonbisson.com/blog/post/11489/memcached-and-wordpress/#comments</comments>
		<pubDate>Wed, 13 Dec 2006 17:17:04 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/blog/post/11489/</guid>
		<description><![CDATA[
Ryan Boren wrote about using memcached with WordPress almost a year ago:
Memcached is a distributed memory object caching system. WordPress 2.0 can make use of memcached by dropping in a special backend for the WP object cache. The memcached backend replaces the default backend and directs all cache requests to one or more memcached daemons. [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-11489"><!-- &nbsp; --></abbr>
<p><a href="http://boren.nu//">Ryan Boren</a> <a href="http://ryan.wordpress.com/2005/12/23/memcached-backend/" title="Memcached Backend « Ryan on WordPress">wrote about using</a> <a href="http://www.danga.com/memcached/" title="memcached: a distributed memory object caching system">memcached</a> with WordPress almost a year ago:</p>
<blockquote><p>Memcached is a distributed memory object caching system. WordPress 2.0 can make use of memcached by dropping in a special backend for the WP object cache. The memcached backend replaces the default backend and directs all cache requests to one or more memcached daemons. You must have a memcached daemon running somewhere for this to work. Unless you’re managing the server on which your blog is running, you probably can’t run a memcached daemon, making this backend useless to you. The memcached backend is targeted at ISPs and those running WPMU. If you are using WPMU and distributing DB requests across multiple servers, memcached will come in very handy. Using memcached for a single blog isn’t really worth it. In my tests, it was sometimes slower than using the default object cache backend.</p></blockquote>
<p>The <a href="http://dev.wp-plugins.org/browser/memcached/" title="/memcached/ - WordPress Plugin Repository - Trac">plugin is here</a>, a <a href="http://mu.wordpress.org/forums/topic.php?id=1424" title="WordPress MU › memcached mod « WordPress MU Forums">bug-fix note is here</a>.</p>
<p><tags>WordPress, memcached, optimization, caching</tags></p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/11489/memcached-and-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Things I Need To Incorporate Into Various Projects</title>
		<link>http://maisonbisson.com/blog/post/11437/things-i-need-to-incorporate-into-various-projects/</link>
		<comments>http://maisonbisson.com/blog/post/11437/things-i-need-to-incorporate-into-various-projects/#comments</comments>
		<pubDate>Thu, 31 Aug 2006 00:57:07 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[pspell]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/blog/post/11437/</guid>
		<description><![CDATA[

memcached, a “highly effective caching daemon, &#8230;designed to decrease database load in dynamic web applications,” and the related PHP functions 
pspell PHP functions related to  aspell and this pspell overview from Zend 
http_build_query, duh? 
current connected mysql threads * unix load average = system busy; reduce operations when $system_busy > $x 

development, memcached, mysql, [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-11437"><!-- &nbsp; --></abbr>
<ul>
<li><a href="http://danga.com/memcached/" title="memcached: a distributed memory object caching system">memcached</a>, a “highly effective caching daemon, &#8230;designed to decrease database load in dynamic web applications,” and the related <a href="http://us3.php.net/memcache" title="PHP: Memcache Functions - Manual">PHP functions</a> </li>
<li><a href="http://us2.php.net/manual/en/ref.pspell.php" title="PHP: Pspell Functions - Manual">pspell PHP functions</a> related to  <a href="http://aspell.net/" title="GNU Aspell">aspell</a> and this <a href="http://www.zend.com/zend/spotlight/spellchecking.php" title="Zend Technologies - Code Gallery Spotlight - Spell checking in PHP">pspell overview from Zend</a> </li>
<li><a href="http://us2.php.net/manual/en/function.http-build-query.php" title="PHP: http_build_query - Manual">http_build_query</a>, duh? </li>
<li>current <a href="http://dev.mysql.com/doc/refman/5.0/en/server-status-variables.html">connected mysql threads</a> * <a href="http://php.net/manual/en/function.sys-getloadavg.php">unix load average</a> = system busy; reduce operations when $system_busy > $x </li>
</ul>
<p><tags>development, memcached, mysql, php, pspell</tags></p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/11437/things-i-need-to-incorporate-into-various-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>