<?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: Caching using PHP/Zend_Cache and MySQL</title>
	<atom:link href="http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/</link>
	<description>Blogging about PHP, Actionscript, MySQL, and other interests.</description>
	<lastBuildDate>Sat, 04 Feb 2012 04:50:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Joey</title>
		<link>http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/comment-page-1/#comment-1700</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Mon, 15 Aug 2011 14:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=443#comment-1700</guid>
		<description>Gracias, glad you enjoyed this post.</description>
		<content:encoded><![CDATA[<p>Gracias, glad you enjoyed this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raul Sanchez</title>
		<link>http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/comment-page-1/#comment-1681</link>
		<dc:creator>Raul Sanchez</dc:creator>
		<pubDate>Sun, 14 Aug 2011 19:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=443#comment-1681</guid>
		<description>You master! Superb post</description>
		<content:encoded><![CDATA[<p>You master! Superb post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shahzad</title>
		<link>http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/comment-page-1/#comment-594</link>
		<dc:creator>shahzad</dc:creator>
		<pubDate>Tue, 30 Nov 2010 05:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=443#comment-594</guid>
		<description>Hi all experts,
I&#039;m new to Zend, I&#039;ve many questions and confusions in my mind to get started with caching. 
It would be grateful if someone answer me to clear my mind.
1) In What circumstances we need to use caching?
2) How to use it for data that is frequently updated?
3) How would we use it in select query which has WHERE clauses and complex sub queries in it like JOINS etc.
4) For instance a user updates his profile, then other will see it if from cache then how would system fetch it from DB if the record was updated.
Hope, I could mention my questions.

Thanks for your response.
shahzad</description>
		<content:encoded><![CDATA[<p>Hi all experts,<br />
I&#8217;m new to Zend, I&#8217;ve many questions and confusions in my mind to get started with caching.<br />
It would be grateful if someone answer me to clear my mind.<br />
1) In What circumstances we need to use caching?<br />
2) How to use it for data that is frequently updated?<br />
3) How would we use it in select query which has WHERE clauses and complex sub queries in it like JOINS etc.<br />
4) For instance a user updates his profile, then other will see it if from cache then how would system fetch it from DB if the record was updated.<br />
Hope, I could mention my questions.</p>
<p>Thanks for your response.<br />
shahzad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milica</title>
		<link>http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/comment-page-1/#comment-509</link>
		<dc:creator>Milica</dc:creator>
		<pubDate>Thu, 16 Sep 2010 19:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=443#comment-509</guid>
		<description>This is pretty much the same as my code but I&#039;ll look if something&#039;s different....

Thanks a lot again, Joey :)</description>
		<content:encoded><![CDATA[<p>This is pretty much the same as my code but I&#8217;ll look if something&#8217;s different&#8230;.</p>
<p>Thanks a lot again, Joey <img src='http://www.joeyrivera.com/blog_new/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/comment-page-1/#comment-508</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Thu, 16 Sep 2010 18:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=443#comment-508</guid>
		<description>Milica,

Try the following example on your server.

http://www.joeyrivera.com/projects/cache_test/

You can see all the code in that link. basically it shows a page and caches it for 10 seconds. If you reload and it&#039;s cached, you should see a &#039;page is cached&#039; message. See if you can copy/paste this code to your server and if you get the same results. Also, I would recommend turning on all error/warnings in case something is happening behind the scenes.</description>
		<content:encoded><![CDATA[<p>Milica,</p>
<p>Try the following example on your server.</p>
<p><a href="http://www.joeyrivera.com/projects/cache_test/" rel="nofollow">http://www.joeyrivera.com/projects/cache_test/</a></p>
<p>You can see all the code in that link. basically it shows a page and caches it for 10 seconds. If you reload and it&#8217;s cached, you should see a &#8216;page is cached&#8217; message. See if you can copy/paste this code to your server and if you get the same results. Also, I would recommend turning on all error/warnings in case something is happening behind the scenes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milica</title>
		<link>http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/comment-page-1/#comment-507</link>
		<dc:creator>Milica</dc:creator>
		<pubDate>Wed, 15 Sep 2010 20:41:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=443#comment-507</guid>
		<description>Thanks a lot! I would really appreciate it :)
I have deadline till Monday to solve this issue and I find zend page caching the quickest solution to my problem and I don&#039;t have time to implement other methods :(

But it&#039;s really strange and I can&#039;t come up with anything why is it happening....

Just for you to know, I am initializing caching inside Bootstrap.php on the top before any other _init method and I&#039;m starting cache ($cache-&gt;start()) from there and I listed all default_options there as you said (because even locally it didn&#039;t want to work if I don&#039;t put it there)...

Thanks again</description>
		<content:encoded><![CDATA[<p>Thanks a lot! I would really appreciate it <img src='http://www.joeyrivera.com/blog_new/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I have deadline till Monday to solve this issue and I find zend page caching the quickest solution to my problem and I don&#8217;t have time to implement other methods <img src='http://www.joeyrivera.com/blog_new/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>But it&#8217;s really strange and I can&#8217;t come up with anything why is it happening&#8230;.</p>
<p>Just for you to know, I am initializing caching inside Bootstrap.php on the top before any other _init method and I&#8217;m starting cache ($cache-&gt;start()) from there and I listed all default_options there as you said (because even locally it didn&#8217;t want to work if I don&#8217;t put it there)&#8230;</p>
<p>Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/comment-page-1/#comment-506</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Wed, 15 Sep 2010 20:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=443#comment-506</guid>
		<description>Milica,

I had this exact problem with my blog a while back and I don&#039;t remember what I ended up doing about it. In the next couple days I&#039;ll try to reproduce this and see if it&#039;s still happening to me to some up with some solution.</description>
		<content:encoded><![CDATA[<p>Milica,</p>
<p>I had this exact problem with my blog a while back and I don&#8217;t remember what I ended up doing about it. In the next couple days I&#8217;ll try to reproduce this and see if it&#8217;s still happening to me to some up with some solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milica</title>
		<link>http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/comment-page-1/#comment-505</link>
		<dc:creator>Milica</dc:creator>
		<pubDate>Wed, 15 Sep 2010 20:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=443#comment-505</guid>
		<description>Hi

I just found this blog and I would really appreciate your help. I have a problem with caching the entire page, I set all parameters as indicated and when I run application locally cache files are created and also used, so on my machine is working. But, when I upload it on remote server which is hosting the site which NEEDS to be cached, files are created but never used! I see that every time request to the db has been made and created cache files are not used at all! And I don&#039;t have any idea why???

Heeeeelp! I really don&#039;t know what to do and it&#039;s driving me crazy :(</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I just found this blog and I would really appreciate your help. I have a problem with caching the entire page, I set all parameters as indicated and when I run application locally cache files are created and also used, so on my machine is working. But, when I upload it on remote server which is hosting the site which NEEDS to be cached, files are created but never used! I see that every time request to the db has been made and created cache files are not used at all! And I don&#8217;t have any idea why???</p>
<p>Heeeeelp! I really don&#8217;t know what to do and it&#8217;s driving me crazy <img src='http://www.joeyrivera.com/blog_new/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Використання Zend_Paginator з Twitter API та Zend_CacheWeb розробки по моєму :: Web розробки по моєму</title>
		<link>http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/comment-page-1/#comment-490</link>
		<dc:creator>Використання Zend_Paginator з Twitter API та Zend_CacheWeb розробки по моєму :: Web розробки по моєму</dc:creator>
		<pubDate>Wed, 30 Jun 2010 13:49:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=443#comment-490</guid>
		<description>[...] Twitter API має кілька різновидів запитів до служби. Для потреб цього простого застосунку я просто хочу повернути останні 50 публічних твітів написаних користувачем – мною. Якщо подивитися на документацію твітера, то побачите, що &#8220;statuses/user_timeline&#8221; видасть нам саме те що треба. Здійснити запит до служби дуже просто. Створюємо екземпляр Zend_Rest_Client на URL служби: http://twitter.com/statuses/user_timeline.xml. Тоді налаштовуємо два параметри: (прогляньте матеріаль за посиланням на документацію по twitter API, щоб побачити решту параметрів) ім’я користувача &#8220;screen name&#8221; (обліковий запис на twitter, за яким ми стежимо), кількість (як багато твітів повернути) та робимо запит $client-&gt;get(). Після отримання сирих даних з твітера, я створюю масив, що міститиме лише мінімально необхідну інформацію, а саме повідомлення (власне вміст моїх дописів довжиною 140 символів кожен). Досить просто? Я теж так думаю. Важко не помітити, що цей функціонал обгорнутий в дуже просте кешування. Перед запитом до служби я перевіряю, чи можливо необхідна інформація вже закешована і все ще актуальна. Якщо це так, я просто повертаю масив з кешу, в іншому випадку я здійснюю запит до служби та зберігаю масив в кеші. Більше інформації про те, як працює Zend_Cache можна отримати в статті про роботу Zend_Cache (англ.). [...]</description>
		<content:encoded><![CDATA[<p>[...] Twitter API має кілька різновидів запитів до служби. Для потреб цього простого застосунку я просто хочу повернути останні 50 публічних твітів написаних користувачем – мною. Якщо подивитися на документацію твітера, то побачите, що &#8220;statuses/user_timeline&#8221; видасть нам саме те що треба. Здійснити запит до служби дуже просто. Створюємо екземпляр Zend_Rest_Client на URL служби: <a href="http://twitter.com/statuses/user_timeline.xml" rel="nofollow">http://twitter.com/statuses/user_timeline.xml</a>. Тоді налаштовуємо два параметри: (прогляньте матеріаль за посиланням на документацію по twitter API, щоб побачити решту параметрів) ім’я користувача &#8220;screen name&#8221; (обліковий запис на twitter, за яким ми стежимо), кількість (як багато твітів повернути) та робимо запит $client-&gt;get(). Після отримання сирих даних з твітера, я створюю масив, що міститиме лише мінімально необхідну інформацію, а саме повідомлення (власне вміст моїх дописів довжиною 140 символів кожен). Досить просто? Я теж так думаю. Важко не помітити, що цей функціонал обгорнутий в дуже просте кешування. Перед запитом до служби я перевіряю, чи можливо необхідна інформація вже закешована і все ще актуальна. Якщо це так, я просто повертаю масив з кешу, в іншому випадку я здійснюю запит до служби та зберігаю масив в кеші. Більше інформації про те, як працює Zend_Cache можна отримати в статті про роботу Zend_Cache (англ.). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/comment-page-1/#comment-473</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Mon, 12 Apr 2010 13:18:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=443#comment-473</guid>
		<description>Teddy,

One way to use page cache would be to set it up in your bootstrap and in the controller you can call cache-&gt;start() to load that page request from cache. That would work just fine if you only want to cache specific pages. If you want to cache everything (and you may not) you can just add cache-&gt;start() in your bootstrap after you initialize it. It really just depends on what you are trying to do.

If you are already using page cache, you probably won&#039;t want to use core as well. But if you are caching different parts of your application, you could use page for some and core for others.  In your cache, if you already have your recordset cached, you probably won&#039;t need page cache as well unless you have a lot of other heavy lifting code that is going on. But I wouldn&#039;t use both for the same page. Hope this helps.</description>
		<content:encoded><![CDATA[<p>Teddy,</p>
<p>One way to use page cache would be to set it up in your bootstrap and in the controller you can call cache->start() to load that page request from cache. That would work just fine if you only want to cache specific pages. If you want to cache everything (and you may not) you can just add cache->start() in your bootstrap after you initialize it. It really just depends on what you are trying to do.</p>
<p>If you are already using page cache, you probably won&#8217;t want to use core as well. But if you are caching different parts of your application, you could use page for some and core for others.  In your cache, if you already have your recordset cached, you probably won&#8217;t need page cache as well unless you have a lot of other heavy lifting code that is going on. But I wouldn&#8217;t use both for the same page. Hope this helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

