<?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: Notes on Zend_Cache</title>
	<atom:link href="http://akrabat.com/zend-framework/notes-on-zend_cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/zend-framework/notes-on-zend_cache/</link>
	<description>Developing PHP software in the Real World, by Rob Allen</description>
	<lastBuildDate>Mon, 06 Feb 2012 14:53:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dominic</title>
		<link>http://akrabat.com/zend-framework/notes-on-zend_cache/#comment-29152</link>
		<dc:creator>Dominic</dc:creator>
		<pubDate>Fri, 13 Nov 2009 16:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=254#comment-29152</guid>
		<description>Rob, of course the intended behaviour is totally up to you.

Since this is just a wrapper around Zend_Cache, I was expecting your save-function to behave like the original one:

//Zend_Cache_Core::save(...)
//...
if (!$this-&gt;_options[&#039;caching&#039;]) {
            return true;
}

Which is exactly what yours does, so I don&#039;t have a point. :)</description>
		<content:encoded><![CDATA[<p>Rob, of course the intended behaviour is totally up to you.</p>
<p>Since this is just a wrapper around Zend_Cache, I was expecting your save-function to behave like the original one:</p>
<p>//Zend_Cache_Core::save(...)<br />
//...<br />
if (!$this-&gt;_options['caching']) {<br />
            return true;<br />
}</p>
<p>Which is exactly what yours does, so I don't have a point. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/zend-framework/notes-on-zend_cache/#comment-29143</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Thu, 12 Nov 2009 19:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=254#comment-29143</guid>
		<description>Dominic,

That&#039;s intentional. When the cache is disabled, it doesn&#039;t actually matter what is returned, but I don&#039;t want any error conditions to occur in the calling code. A true result is more likely to achieve that goal.

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Dominic,</p>
<p>That's intentional. When the cache is disabled, it doesn't actually matter what is returned, but I don't want any error conditions to occur in the calling code. A true result is more likely to achieve that goal.</p>
<p>Regards,</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominic</title>
		<link>http://akrabat.com/zend-framework/notes-on-zend_cache/#comment-29140</link>
		<dc:creator>Dominic</dc:creator>
		<pubDate>Thu, 12 Nov 2009 13:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=254#comment-29140</guid>
		<description>I think a little error has slipped into your save-function.

In case the cache has not been initated and a key/value is passed, the function will always return true, although the value is never saved.</description>
		<content:encoded><![CDATA[<p>I think a little error has slipped into your save-function.</p>
<p>In case the cache has not been initated and a key/value is passed, the function will always return true, although the value is never saved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy</title>
		<link>http://akrabat.com/zend-framework/notes-on-zend_cache/#comment-24727</link>
		<dc:creator>Roy</dc:creator>
		<pubDate>Thu, 02 Apr 2009 12:36:21 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=254#comment-24727</guid>
		<description>Hey Its really a very very helpful post. I think with the same coding technique we can use some other zend components also.

Well its really a very good technique to use framework components in procedural php development.

Thanks again for wonderful post.</description>
		<content:encoded><![CDATA[<p>Hey Its really a very very helpful post. I think with the same coding technique we can use some other zend components also.</p>
<p>Well its really a very good technique to use framework components in procedural php development.</p>
<p>Thanks again for wonderful post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristina</title>
		<link>http://akrabat.com/zend-framework/notes-on-zend_cache/#comment-23813</link>
		<dc:creator>Cristina</dc:creator>
		<pubDate>Mon, 22 Dec 2008 14:24:36 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=254#comment-23813</guid>
		<description>I have found this link 
http://www.nabble.com/Optimize-Zend_Cache-clearing-to16809942.html#a16809942
which relate the same problem although it does not clarify it.

Thanks.
Cristina.</description>
		<content:encoded><![CDATA[<p>I have found this link<br />
<a href="http://www.nabble.com/Optimize-Zend_Cache-clearing-to16809942.html#a16809942" rel="nofollow">http://www.nabble.com/Optimize-Zend_Cache-clearing-to16809942.html#a16809942</a><br />
which relate the same problem although it does not clarify it.</p>
<p>Thanks.<br />
Cristina.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/zend-framework/notes-on-zend_cache/#comment-23799</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Sat, 20 Dec 2008 08:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=254#comment-23799</guid>
		<description>Cristina,

I recommend asking on the ZF mailing lists.

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Cristina,</p>
<p>I recommend asking on the ZF mailing lists.</p>
<p>Regards,</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristina</title>
		<link>http://akrabat.com/zend-framework/notes-on-zend_cache/#comment-23792</link>
		<dc:creator>Cristina</dc:creator>
		<pubDate>Fri, 19 Dec 2008 14:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=254#comment-23792</guid>
		<description>Hi Rob,
Thanks for Zend Framework in Action book, I´ve had it since october 2007 (MEAP) and it´s helping me a lot.
I hope you can help me with this problem:
I am working on an Intranet, I was using the Zend_Cache 

$cache = Zend_Cache::factory(&#039;Core&#039;, &#039;File&#039;, $frontendOptions, $backendOptions);

to cache a queries (lists) that are showed always you enter on each section. But, when you insert or update some item related to a query its cache must be removed.
I am using the tags. When I create a new cache I tag it with the names of all tables involved in that query.
While this tables not change the cache is available.
But when a change happen:
In My_Model_Db_Table class i put this:

$cache-&gt;clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG, array($this-&gt;_name));

and works perfectly but it is too too slow. 
I do not know why but it takes 33 seg more.
The inserts and updates are usual and it takes a long time.

Have you got any idea? Am I doing any wrong?

Thanks in advance.
Cristina.</description>
		<content:encoded><![CDATA[<p>Hi Rob,<br />
Thanks for Zend Framework in Action book, I've had it since october 2007 (MEAP) and it's helping me a lot.<br />
I hope you can help me with this problem:<br />
I am working on an Intranet, I was using the Zend_Cache </p>
<p>$cache = Zend_Cache::factory('Core', 'File', $frontendOptions, $backendOptions);</p>
<p>to cache a queries (lists) that are showed always you enter on each section. But, when you insert or update some item related to a query its cache must be removed.<br />
I am using the tags. When I create a new cache I tag it with the names of all tables involved in that query.<br />
While this tables not change the cache is available.<br />
But when a change happen:<br />
In My_Model_Db_Table class i put this:</p>
<p>$cache-&gt;clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG, array($this-&gt;_name));</p>
<p>and works perfectly but it is too too slow.<br />
I do not know why but it takes 33 seg more.<br />
The inserts and updates are usual and it takes a long time.</p>
<p>Have you got any idea? Am I doing any wrong?</p>
<p>Thanks in advance.<br />
Cristina.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/zend-framework/notes-on-zend_cache/#comment-22498</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Mon, 04 Aug 2008 18:24:38 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=254#comment-22498</guid>
		<description>Conrad,

I would think you could do something with a custom route and Zend_Cache.

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Conrad,</p>
<p>I would think you could do something with a custom route and Zend_Cache.</p>
<p>Regards,</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Conrad</title>
		<link>http://akrabat.com/zend-framework/notes-on-zend_cache/#comment-22420</link>
		<dc:creator>Conrad</dc:creator>
		<pubDate>Tue, 29 Jul 2008 14:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=254#comment-22420</guid>
		<description>Hi Rob, I was wondering, is it possible to use Zend_Cache to convert my dynamic generated pages into static HTML pages?  For example,

http://www.example.com/update/show/id/3

would map to the following page:

http://www.example.com/update/show/3.html

At this time, I&#039;m interested in page caching.

Thanks in advance,

-Conrad</description>
		<content:encoded><![CDATA[<p>Hi Rob, I was wondering, is it possible to use Zend_Cache to convert my dynamic generated pages into static HTML pages?  For example,</p>
<p><a href="http://www.example.com/update/show/id/3" rel="nofollow">http://www.example.com/update/show/id/3</a></p>
<p>would map to the following page:</p>
<p><a href="http://www.example.com/update/show/3.html" rel="nofollow">http://www.example.com/update/show/3.html</a></p>
<p>At this time, I'm interested in page caching.</p>
<p>Thanks in advance,</p>
<p>-Conrad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Abernethy</title>
		<link>http://akrabat.com/zend-framework/notes-on-zend_cache/#comment-22285</link>
		<dc:creator>Chris Abernethy</dc:creator>
		<pubDate>Wed, 16 Jul 2008 13:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=254#comment-22285</guid>
		<description>@iongion: I think you&#039;re right about that, I believe it is a version of the PDT with more features.

I also have a post on my site (http://www.chrisabernethy.com/zend-framework-route-benchmarks/) that talks about profiling using eclipse, PDT, xdebug and kcachegrind.</description>
		<content:encoded><![CDATA[<p>@iongion: I think you're right about that, I believe it is a version of the PDT with more features.</p>
<p>I also have a post on my site (<a href="http://www.chrisabernethy.com/zend-framework-route-benchmarks/" rel="nofollow">http://www.chrisabernethy.com/zend-framework-route-benchmarks/</a>) that talks about profiling using eclipse, PDT, xdebug and kcachegrind.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

