<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Productive Weekend</title>
	<link>http://www.sweeting.org/mark/blog/2007/01/29/productive-weekend</link>
	<description>The world according to marky moo</description>
	<pubDate>Wed, 08 Feb 2012 22:28:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Mark</title>
		<link>http://www.sweeting.org/mark/blog/2007/01/29/productive-weekend#comment-38490</link>
		<author>Mark</author>
		<pubDate>Mon, 29 Jan 2007 22:22:57 +0000</pubDate>
		<guid>http://www.sweeting.org/mark/blog/2007/01/29/productive-weekend#comment-38490</guid>
		<description>Hey Gary, yeah, I'm like a stuck record at times!

To be honest I got fed up with the PEAR Cache_Lite stuff. Although it basically works, it still has the downside of writing to disc, as well as no neat method to clean up old cache files. Potentially a problem...

But memcache is great - it's so slick! The docs are pretty easy to understand, but you basically turn on output buffering (&lt;code&gt;ob_start()&lt;/code&gt;), generate your page as normal, then at the bottom get your HTML from the output buffer (&lt;code&gt;ob_get_contents();&lt;/code&gt;), stick it in your cache then print it to the client. Of course it's only suitable for certain content, but that's the same with all caching.

I've got an experimental wrapper to this which I'll email over to you - you may have some nice modifications for it 8-)</description>
		<content:encoded><![CDATA[<p>Hey Gary, yeah, I&#8217;m like a stuck record at times!</p>
<p>To be honest I got fed up with the PEAR Cache_Lite stuff. Although it basically works, it still has the downside of writing to disc, as well as no neat method to clean up old cache files. Potentially a problem&#8230;</p>
<p>But memcache is great - it&#8217;s so slick! The docs are pretty easy to understand, but you basically turn on output buffering (<code>ob_start()</code>), generate your page as normal, then at the bottom get your HTML from the output buffer (<code>ob_get_contents();</code>), stick it in your cache then print it to the client. Of course it&#8217;s only suitable for certain content, but that&#8217;s the same with all caching.</p>
<p>I&#8217;ve got an experimental wrapper to this which I&#8217;ll email over to you - you may have some nice modifications for it <img src='http://www.sweeting.org/mark/blog/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://www.sweeting.org/mark/blog/2007/01/29/productive-weekend#comment-38482</link>
		<author>Gary</author>
		<pubDate>Mon, 29 Jan 2007 22:12:49 +0000</pubDate>
		<guid>http://www.sweeting.org/mark/blog/2007/01/29/productive-weekend#comment-38482</guid>
		<description>Hi Mark,

You're always mentioning the benefits of these caching systems, and they always sound great, but when I look into them in more depth they always seem quite difficult to integrate.

This time though, after glancing at the memcache page above, the integration looks pretty easy, mostly because php now has &lt;a href="http://uk2.php.net/memcache" rel="nofollow"&gt;memcache&lt;/a&gt; functions built-in.

This time I will definitely give a trial run on my dev system at work.

Thanks for the pointer :)</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>You&#8217;re always mentioning the benefits of these caching systems, and they always sound great, but when I look into them in more depth they always seem quite difficult to integrate.</p>
<p>This time though, after glancing at the memcache page above, the integration looks pretty easy, mostly because php now has <a href="http://uk2.php.net/memcache" rel="nofollow">memcache</a> functions built-in.</p>
<p>This time I will definitely give a trial run on my dev system at work.</p>
<p>Thanks for the pointer <img src='http://www.sweeting.org/mark/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>

