<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Quick and Dirty PHP Caching</title>
	<atom:link href="http://www.snipe.net/2009/03/quick-and-dirty-php-caching/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.snipe.net/2009/03/quick-and-dirty-php-caching/</link>
	<description>Bitterness never tasted so sweet</description>
	<lastBuildDate>Mon, 22 Mar 2010 10:38:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: PHP Caching Method</title>
		<link>http://www.snipe.net/2009/03/quick-and-dirty-php-caching/comment-page-1/#comment-8059</link>
		<dc:creator>PHP Caching Method</dc:creator>
		<pubDate>Thu, 04 Feb 2010 22:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1698#comment-8059</guid>
		<description>[...]            you can view the tutorial here: Quick and Dirty PHP Caching &#124; Snipe.Net    Technology Tips Hosting Reviews Affiliate Tips         Reply With Quote &#160;                + [...]</description>
		<content:encoded><![CDATA[<p>[...]            you can view the tutorial here: Quick and Dirty PHP Caching | Snipe.Net    Technology Tips Hosting Reviews Affiliate Tips         Reply With Quote &nbsp;                + [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xcoder</title>
		<link>http://www.snipe.net/2009/03/quick-and-dirty-php-caching/comment-page-1/#comment-8058</link>
		<dc:creator>xcoder</dc:creator>
		<pubDate>Thu, 04 Feb 2010 22:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1698#comment-8058</guid>
		<description>I build the class &gt;&gt; &lt;a href=&quot;http://www.copypastecode.com/20949/&quot; rel=&quot;nofollow&quot;&gt;http://www.copypastecode.com/20949/&lt;/a&gt;&lt;br&gt;&lt;br&gt;All you need to is include it in cache::load() in the page top and cache::create() in page bottom  =)</description>
		<content:encoded><![CDATA[<p>I build the class &gt;&gt; <a href="http://www.copypastecode.com/20949/" rel="nofollow">http://www.copypastecode.com/20949/</a></p>
<p>All you need to is include it in cache::load() in the page top and cache::create() in page bottom  =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mdelannoy</title>
		<link>http://www.snipe.net/2009/03/quick-and-dirty-php-caching/comment-page-1/#comment-8057</link>
		<dc:creator>mdelannoy</dc:creator>
		<pubDate>Thu, 04 Feb 2010 19:29:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1698#comment-8057</guid>
		<description>a little enhancement for those interested:&lt;br&gt;&lt;?&lt;br&gt;//begining of page&lt;br&gt;// starting page load time&lt;br&gt;$time_start = microtime(true);&lt;br&gt;&lt;br&gt;if($_SERVER[&#039;SERVER_NAME&#039;]== &quot;localhost&quot;)&lt;br&gt;	$cachedir = &quot;development_server_cache&quot;;&lt;br&gt;else&lt;br&gt;	$cachedir = &quot;production_server_cache&quot;;&lt;br&gt;	&lt;br&gt;$cachefile = $cachedir . $_SERVER[&#039;PHP_SELF&#039;];&lt;br&gt;&lt;br&gt;if (&lt;br&gt;	file_exists($cachefile) &lt;br&gt;	&amp;&amp; &lt;br&gt;	(filemtime($_SERVER[&#039;DOCUMENT_ROOT&#039;] . $_SERVER[&#039;PHP_SELF&#039;]) &lt; filemtime($cachefile))&lt;br&gt;	&amp;&amp;&lt;br&gt;	!isset($_GET[&quot;nocache&quot;])&lt;br&gt;	) {&lt;br&gt;		include($cachefile);&lt;br&gt;		echo &quot;&lt;!-- Cached &quot;.date(&#039;jS F Y H:i&#039;, filemtime($cachefile)).&quot; --&gt;n&quot;;&lt;br&gt;		$time_end = microtime(true);&lt;br&gt;		$time = $time_end - $time_start;&lt;br&gt;		echo &quot;&lt;!-- took me $time seconds to load page--&gt;n&quot;;&lt;br&gt;		exit;&lt;br&gt;}&lt;br&gt;ob_start(); // start the output buffer&lt;br&gt;?&gt;&lt;br&gt;&lt;?&lt;br&gt;//end of cache&lt;br&gt;	$time_end = microtime(true);&lt;br&gt;	$time = $time_end - $time_start;&lt;br&gt;	echo &quot;&lt;!-- took me $time seconds to server uncached page --&gt;n&quot;;&lt;br&gt;&lt;br&gt;if(!file_exists(dirname($cachefile)))&lt;br&gt;	mkdir(dirname($cachefile), 0777, TRUE);&lt;br&gt;&lt;br&gt;$fp = fopen($cachefile, &#039;w&#039;); // open the cache file for writing&lt;br&gt;fwrite($fp, ob_get_contents()); // save the contents of output buffer to the file&lt;br&gt;fclose($fp); // close the file&lt;br&gt;ob_end_flush(); // Send the output to the browser&lt;br&gt;?&gt;</description>
		<content:encoded><![CDATA[<p>a little enhancement for those interested:<br />&lt;?<br />//begining of page<br />// starting page load time<br />$time_start = microtime(true);</p>
<p>if($_SERVER[&#39;SERVER_NAME&#39;]== &#8220;localhost&#8221;)<br />	$cachedir = &#8220;development_server_cache&#8221;;<br />else<br />	$cachedir = &#8220;production_server_cache&#8221;;</p>
<p>$cachefile = $cachedir . $_SERVER[&#39;PHP_SELF&#39;];</p>
<p>if (<br />	file_exists($cachefile) <br />	&#038;&#038; <br />	(filemtime($_SERVER[&#39;DOCUMENT_ROOT&#39;] . $_SERVER[&#39;PHP_SELF&#39;]) &lt; filemtime($cachefile))<br />	&#038;&#038;<br />	!isset($_GET["nocache"])<br />	) {<br />		include($cachefile);<br />		echo &#8220;&lt;!&#8211; Cached &#8220;.date(&#39;jS F Y H:i&#39;, filemtime($cachefile)).&#8221; &#8211;&gt;n&#8221;;<br />		$time_end = microtime(true);<br />		$time = $time_end &#8211; $time_start;<br />		echo &#8220;&lt;!&#8211; took me $time seconds to load page&#8211;&gt;n&#8221;;<br />		exit;<br />}<br />ob_start(); // start the output buffer<br />?&gt;<br />&lt;?<br />//end of cache<br />	$time_end = microtime(true);<br />	$time = $time_end &#8211; $time_start;<br />	echo &#8220;&lt;!&#8211; took me $time seconds to server uncached page &#8211;&gt;n&#8221;;</p>
<p>if(!file_exists(dirname($cachefile)))<br />	mkdir(dirname($cachefile), 0777, TRUE);</p>
<p>$fp = fopen($cachefile, &#39;w&#39;); // open the cache file for writing<br />fwrite($fp, ob_get_contents()); // save the contents of output buffer to the file<br />fclose($fp); // close the file<br />ob_end_flush(); // Send the output to the browser<br />?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: On Demand CSS Minification Trick &#124; Naked Trout</title>
		<link>http://www.snipe.net/2009/03/quick-and-dirty-php-caching/comment-page-1/#comment-7976</link>
		<dc:creator>On Demand CSS Minification Trick &#124; Naked Trout</dc:creator>
		<pubDate>Tue, 26 Jan 2010 13:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1698#comment-7976</guid>
		<description>[...] save a significant amount of CPU cycles. Here is the modified PHP CSS minifier vastly inspired by Quick and Dirty PHP Caching article (snipe.net). My Apache is configured to send GZIPed content whenever possible so, I dropped [...]</description>
		<content:encoded><![CDATA[<p>[...] save a significant amount of CPU cycles. Here is the modified PHP CSS minifier vastly inspired by Quick and Dirty PHP Caching article (snipe.net). My Apache is configured to send GZIPed content whenever possible so, I dropped [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dany</title>
		<link>http://www.snipe.net/2009/03/quick-and-dirty-php-caching/comment-page-1/#comment-7969</link>
		<dc:creator>dany</dc:creator>
		<pubDate>Tue, 26 Jan 2010 07:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1698#comment-7969</guid>
		<description>Really nice article, I&#039;ve written a very similar script this morning.&lt;br&gt;I am the developer of a news website that receives more than 100k visitors a day and for such websites caching is a must but has it&#039;s down side.&lt;br&gt;The best solution for such websites is to use tight expiry time not more than 2 minutes max.</description>
		<content:encoded><![CDATA[<p>Really nice article, I&#39;ve written a very similar script this morning.<br />I am the developer of a news website that receives more than 100k visitors a day and for such websites caching is a must but has it&#39;s down side.<br />The best solution for such websites is to use tight expiry time not more than 2 minutes max.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CSS Minification on the Fly &#124; Shiny Blog</title>
		<link>http://www.snipe.net/2009/03/quick-and-dirty-php-caching/comment-page-1/#comment-7937</link>
		<dc:creator>CSS Minification on the Fly &#124; Shiny Blog</dc:creator>
		<pubDate>Wed, 20 Jan 2010 15:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1698#comment-7937</guid>
		<description>[...] save a significant amount of CPU cycles. Here is the modified PHP CSS minifier vastly inspired by Quick and Dirty PHP Caching article [...]</description>
		<content:encoded><![CDATA[<p>[...] save a significant amount of CPU cycles. Here is the modified PHP CSS minifier vastly inspired by Quick and Dirty PHP Caching article [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tlrobinson</title>
		<link>http://www.snipe.net/2009/03/quick-and-dirty-php-caching/comment-page-1/#comment-7929</link>
		<dc:creator>tlrobinson</dc:creator>
		<pubDate>Sat, 16 Jan 2010 17:05:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1698#comment-7929</guid>
		<description>I took this idea one step further and made it into a re-usable script that can be included at the top of any .php to cache the output of that page: &lt;a href=&quot;http://github.com/tlrobinson/cacheme.php&quot; rel=&quot;nofollow&quot;&gt;http://github.com/tlrobinson/cacheme.php&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I took this idea one step further and made it into a re-usable script that can be included at the top of any .php to cache the output of that page: <a href="http://github.com/tlrobinson/cacheme.php" rel="nofollow">http://github.com/tlrobinson/cacheme.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: how to control caching in php</title>
		<link>http://www.snipe.net/2009/03/quick-and-dirty-php-caching/comment-page-1/#comment-7916</link>
		<dc:creator>how to control caching in php</dc:creator>
		<pubDate>Tue, 12 Jan 2010 05:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1698#comment-7916</guid>
		<description>[...] Problems [PHP &amp; MySQL Tutorials] PHP Caching to Speed up Dynamically Generated Sites Quick and Dirty PHP Caching &#124; Snipe.Net  The main way is obviously using output buffers and storing them in static files to be loaded.      [...]</description>
		<content:encoded><![CDATA[<p>[...] Problems [PHP &amp; MySQL Tutorials] PHP Caching to Speed up Dynamically Generated Sites Quick and Dirty PHP Caching | Snipe.Net  The main way is obviously using output buffers and storing them in static files to be loaded.      [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas</title>
		<link>http://www.snipe.net/2009/03/quick-and-dirty-php-caching/comment-page-1/#comment-7857</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Sun, 22 Nov 2009 04:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1698#comment-7857</guid>
		<description>Nice tutor!!</description>
		<content:encoded><![CDATA[<p>Nice tutor!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas</title>
		<link>http://www.snipe.net/2009/03/quick-and-dirty-php-caching/comment-page-1/#comment-7623</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Sat, 21 Nov 2009 22:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1698#comment-7623</guid>
		<description>Nice tutor!!</description>
		<content:encoded><![CDATA[<p>Nice tutor!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
