<?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"
	>
<channel>
	<title>Comments on: PHP Performance Series: Caching Techniques</title>
	<atom:link href="http://blog.digitalstruct.com/2008/02/27/php-performance-series-caching-techniques/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.digitalstruct.com/2008/02/27/php-performance-series-caching-techniques/</link>
	<description>Getting inside the mind of a php developer.</description>
	<pubDate>Wed, 09 Jul 2008 01:57:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Basic Thinking Blog &#124; Wochenende</title>
		<link>http://blog.digitalstruct.com/2008/02/27/php-performance-series-caching-techniques/#comment-39342</link>
		<dc:creator>Basic Thinking Blog &#124; Wochenende</dc:creator>
		<pubDate>Sat, 26 Apr 2008 10:53:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digitalstruct.com/2008/02/27/php-performance-series-caching-techniques/#comment-39342</guid>
		<description>[...] Caching-M&#246;glichkeiten f&#252;r PhP-Anwendung   Artikelzusatzinfos 1. Tags: mixed, wochenende 2. weitere Artikel [...]</description>
		<content:encoded><![CDATA[<p>[...] Caching-M&#246;glichkeiten f&#252;r PhP-Anwendung   Artikelzusatzinfos 1. Tags: mixed, wochenende 2. weitere Artikel [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Willbanks</title>
		<link>http://blog.digitalstruct.com/2008/02/27/php-performance-series-caching-techniques/#comment-38870</link>
		<dc:creator>Mike Willbanks</dc:creator>
		<pubDate>Thu, 28 Feb 2008 18:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digitalstruct.com/2008/02/27/php-performance-series-caching-techniques/#comment-38870</guid>
		<description>@Herve -
That is true, however, this is about knowing your data set as well as the results it is returning.  I updated the examples based on your feed back.  However:
&lt;blockquote&gt;if ($Cache_Lite-&gt;get($id) === false) {&lt;/blockquote&gt;
Is in efficient because then you would also have to do that same thing again to retrieve the value.  The following would be better (however, less readable):
&lt;blockquote&gt;if (($var = $Cache_Lite-&gt;get($id)) === false) {&lt;/blockquote&gt;
You could certainly write the above in 2 lines but I like the single line for simplicity sakes.  Here is the two line version:
&lt;blockquote&gt;
$var = $Cache_Lite-&gt;get($id);
if ($var === false) {
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>@Herve -<br />
That is true, however, this is about knowing your data set as well as the results it is returning.  I updated the examples based on your feed back.  However:</p>
<blockquote><p>if ($Cache_Lite->get($id) === false) {</p></blockquote>
<p>Is in efficient because then you would also have to do that same thing again to retrieve the value.  The following would be better (however, less readable):</p>
<blockquote><p>if (($var = $Cache_Lite->get($id)) === false) {</p></blockquote>
<p>You could certainly write the above in 2 lines but I like the single line for simplicity sakes.  Here is the two line version:</p>
<blockquote><p>
$var = $Cache_Lite->get($id);<br />
if ($var === false) {
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Herve</title>
		<link>http://blog.digitalstruct.com/2008/02/27/php-performance-series-caching-techniques/#comment-38867</link>
		<dc:creator>Herve</dc:creator>
		<pubDate>Thu, 28 Feb 2008 17:55:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digitalstruct.com/2008/02/27/php-performance-series-caching-techniques/#comment-38867</guid>
		<description>With Pear Cache_lite, this kind of examples should not exist anymore :

if (!($categories = $cache-&#62;get('categories'))) {

You can have 0 as a result of an Sql query or from anything else and in this case, the test is wrong.
In your test, you should use a strict comparaision like :
        if ($Cache_Lite-&#62;get($id) === false) {
       }</description>
		<content:encoded><![CDATA[<p>With Pear Cache_lite, this kind of examples should not exist anymore :</p>
<p>if (!($categories = $cache-&gt;get(&#8217;categories&#8217;))) {</p>
<p>You can have 0 as a result of an Sql query or from anything else and in this case, the test is wrong.<br />
In your test, you should use a strict comparaision like :<br />
        if ($Cache_Lite-&gt;get($id) === false) {<br />
       }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
