<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Data-Diggers.com &#187; Query Cache</title>
	<atom:link href="http://www.data-diggers.com/index.php/tag/query-cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.data-diggers.com</link>
	<description>Zen Cart Optimization, Performance and A/B Split Testing Modules for Zen Cart</description>
	<lastBuildDate>Mon, 24 May 2010 18:56:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Query Cache v1.5 released</title>
		<link>http://www.data-diggers.com/index.php/2009/01/query-cache-v1-5-released/</link>
		<comments>http://www.data-diggers.com/index.php/2009/01/query-cache-v1-5-released/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 14:24:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Query Cache]]></category>
		<category><![CDATA[Zen Cart]]></category>

		<guid isPermaLink="false">http://www.data-diggers.eu/?p=37</guid>
		<description><![CDATA[
			
				
			
		
Version 1.5 of Query Cache for Zen Cart has been released. New version reduces query count by 80% (previous version reduced query count by &#8216;only&#8217; 50%). Here&#8217;s list of changes:

970 queries down to 198 queries ( v1.0 executed about 450 queries )
some performance improvements to code
includes/functions/functions_categories.php has been rewritten to use cache and prefetch data. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.data-diggers.com%2Findex.php%2F2009%2F01%2Fquery-cache-v1-5-released%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.data-diggers.com%2Findex.php%2F2009%2F01%2Fquery-cache-v1-5-released%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p style="text-align: justify;">Version 1.5 of<strong> Query Cache</strong> for Zen Cart has been released. New version <strong>reduces query count by 80%</strong> (previous version reduced query count by &#8216;only&#8217; 50%). Here&#8217;s list of changes:</p>
<ul style="text-align: justify;">
<li>970 queries down to 198 queries ( v1.0 executed about 450 queries )</li>
<li>some performance improvements to code</li>
<li>includes/functions/functions_categories.php has been rewritten to use cache and prefetch data. It reduces query count by about 100 queries (it depends on number of categories in Your store)</li>
<li>basic queries for product from products table (for example &#8220;<em>select products_name, manufacturers_id from products where products_id = &#8216;7&#8242;</em>&#8220;) can now be rewritten to &#8220;<em>select * from products where products_id = &#8216;7&#8242;</em>&#8220;. It saves about 100 queries on default Zen Cart demo store.<strong><br />
</strong></li>
</ul>
<p style="text-align: justify;">Download <a href="http://www.data-diggers.com/contribs/query-cache/downloads/querycache-current.zip">Query Cache v1.5</a>. See <a href="http://www.data-diggers.eu/index.php/2008/12/query-cache-for-zen-cart-released/">updated blog entry on Query Cache</a> for updated charts, demo stores and screencast.</p>
<h2 style="text-align: justify;"><strong>Stay in touch<br />
</strong></h2>
<p style="text-align: justify;">Just type Your address here to be notified of new versions of Query Cache (You&#8217;ll receive only updates on Query Cache). Quick info: We hate spam, Your email will not be given to anyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.data-diggers.com/index.php/2009/01/query-cache-v1-5-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Query Cache for Zen Cart released</title>
		<link>http://www.data-diggers.com/index.php/2008/12/query-cache-for-zen-cart-released/</link>
		<comments>http://www.data-diggers.com/index.php/2008/12/query-cache-for-zen-cart-released/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 22:43:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Query Cache]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[Speed]]></category>
		<category><![CDATA[Zen Cart]]></category>

		<guid isPermaLink="false">http://www.data-diggers.eu/?p=3</guid>
		<description><![CDATA[
			
				
			
		
Update: Query Cache V1.6 has been released &#8211; read here
Query Cache is free, in memory cache designed to work with Zen Cart. It can reduce number of queries sent to database by over 80% (see charts below). Thus, Query Cache  might greatly reduce query execution time and response time of most Zen Cart stores.
You might [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.data-diggers.com%2Findex.php%2F2008%2F12%2Fquery-cache-for-zen-cart-released%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.data-diggers.com%2Findex.php%2F2008%2F12%2Fquery-cache-for-zen-cart-released%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p style="text-align: justify;"><strong>Update</strong>: Query Cache V1.6 has been released &#8211; <a href="http://www.data-diggers.com/query-cache-v1.6-released">read here</a></p>
<p style="text-align: justify;"><strong>Query Cache</strong> is free, in memory cache designed to work with Zen Cart. It can reduce number of queries sent to database by over 80% (see charts below). Thus, Query Cache  might greatly reduce query execution time and response time of most Zen Cart stores.</p>
<p style="text-align: justify;">You might want to jump quickly to see <a href="http://www.data-diggers.com/sites/all/modules/fckeditor/fckeditor/editor/fckeditor.html?InstanceName=oFCK_1&amp;Toolbar=Default#Demo_Stores">Demo Stores</a>. Compare number of queries on each store.</p>
<h2 style="text-align: justify;"><strong>Performance Analysis</strong></h2>
<p style="text-align: justify;">We&#8217;ve ran some tests on demo installment of Zen Cart 1.3.8a which contains just a few products, few categories, one customer and no orders. Still, Zen Cart generated over nine hundred queries (&gt;900!) just to load first page of the demo store (You can check how many queries generates Your store by turning on &#8216;Display Page Parse Time&#8217;, <a href="http://www.data-diggers.com/sites/all/modules/fckeditor/fckeditor/editor/fckeditor.html?InstanceName=oFCK_1&amp;Toolbar=Default#Verify">read more</a>). After that, Query Cache has been installed and it managed to reduce number of queries by half (from 900 to 199 queries approx.).</p>
<p style="text-align: justify;">Other pages where also checked, including: category view page, search results page and &#8217;static&#8217; (more or less) shipping information page. Results are presented on figures below:</p>
<table style="text-align: justify;" border="0" cellspacing="1" cellpadding="1" width="100%">
<tbody>
<tr>
<td align="center" valign="middle"><a rel="lightbox[query-cache]" href="http://www.data-diggers.com/contribs/query-cache/images/home_page.jpg"><img src="http://www.data-diggers.com/contribs/query-cache/images/home_page.jpg" alt="" width="250" height="193" /></a></td>
<td align="center" valign="middle"><a rel="lightbox[query-cache]" href="http://www.data-diggers.com/contribs/query-cache/images/category.jpg"><img src="http://www.data-diggers.com/contribs/query-cache/images/category.jpg" alt="" width="250" height="193" /></a></td>
</tr>
<tr>
<td align="center" valign="middle"><a rel="lightbox[query-cache]" href="http://www.data-diggers.com/contribs/query-cache/images/search_results_new.jpg"><img src="http://www.data-diggers.com/contribs/query-cache/images/search_results_new.jpg" alt="" width="250" height="193" /></a></td>
<td align="center" valign="middle"><a rel="lightbox[query-cache]" href="http://www.data-diggers.com/contribs/query-cache/images/shipping.jpg"><img src="http://www.data-diggers.com/contribs/query-cache/images/shipping.jpg" alt="" width="250" height="193" /></a></td>
</tr>
</tbody>
</table>
<h2 style="text-align: justify;"><strong>Advantages of Query Cache</strong></h2>
<ul style="text-align: justify;">
<li>reduces number of queries sent to database by 80%</li>
<li>it&#8217;s very easy to install (jump to <a href="http://www.data-diggers.com/sites/all/modules/fckeditor/fckeditor/editor/fckeditor.html?InstanceName=oFCK_1&amp;Toolbar=Default#Installation_Instructions">Installation instructions)</a></li>
<li>reduces page generation time, reduces load on database server.</li>
<li>works with all 1.3.x versions of Zen Cart</li>
</ul>
<h2 style="text-align: justify;"><strong>Disadvantages of Query Cache</strong></h2>
<p style="text-align: justify;">As far as We can tell there is only one disadvantage: at this moment Query Cache can&#8217;t detect if database has been changed while php script is running. This means that if, for example, information about product is pulled from database, then product is updated, and retrieved again from database (<strong>all happening in one request</strong>) updated information might not be retrieved (in next request information will be updated).</p>
<h2 style="text-align: justify;"><a name="Download"></a><strong>Download</strong></h2>
<p style="text-align: justify;">Here is package including Query Cache for <strong>ALL</strong> versions of Zen Cart 1.3.x:</p>
<p style="text-align: center;"><a href="http://www.data-diggers.com/contribs/query-cache/downloads/querycache-current.zip"><span style="font-size: larger;"><strong><em>Download Query Cache &#8211; latest version<br />
</em></strong></span></a></p>
<h2 style="text-align: justify;"><a name="Installation_Instructions"></a><strong>Installation Instructions</strong></h2>
<p style="text-align: justify;">First, download contribution <a href="http://www.data-diggers.com/sites/all/modules/fckeditor/fckeditor/editor/fckeditor.html?InstanceName=oFCK_1&amp;Toolbar=Default#Download">here</a>. Extract it with WinZip or something similar. Go to extracted directory. There are few directories named like &#8216;Zen-Cart 1.3.x&#8217; where &#8216;x&#8217; is minor version number of Zen Cart. To install this module:</p>
<ol style="text-align: justify;">
<li>BACKUP BACKUP BACKUP!</li>
<li>Upload &#8216;includes&#8217; directory (from directory corresponding to Your Zen Cart version) on Your server (via ftp, sftp or any other protocol).</li>
<li>Done.</li>
</ol>
<p style="text-align: justify;"><em><strong>Note:</strong></em> Query Cache v1.5 has feature that might slow down Your store if Your web server is <strong>very </strong>slow. In such case You can try to set <em>QC_USE_PRODUCT_QUERY_DETECTION</em> in includes/extra_configures/query_cache.php to FALSE.<br />
This contribution is preconfigured to use <strong>Query Log</strong> _IF_ it&#8217;s available. If Query Log is not installed, Query Cache will still work without any problems (or at least it should;)</p>
<h2 style="text-align: justify;"><a name="Verify"></a> <strong>How to verify that Query Cache Works</strong></h2>
<h1 style="text-align: justify;"><strong> </strong></h1>
<p style="text-align: justify;">Before installing Query Cache check how many queries Your store executes:</p>
<ul style="text-align: justify;">
<li>Enable &#8216;Display The Page Parse Time&#8217; option in Store Admin in Configuration -&gt; Logging.</li>
<li>Go to Your store, scroll down and see how many queries where executed.</li>
</ul>
<p style="text-align: justify;">Now, install Query Cache and visit the same page. Check query count, it should be much lower.</p>
<h2 style="text-align: justify;"><strong>Screencast</strong></h2>
<p style="text-align: justify;">Here is screencast showing how to install this contribution.</p>
<p style="text-align: center;"><a href="http://www.data-diggers.com/contribs/query-cache/screencasts/installation/querycache.html" target="_blank"><img src="http://www.data-diggers.com/contribs/query-cache/screencasts/installation/thumb.jpg" border="0" alt="" /></a></p>
<h2 style="text-align: justify;"><strong><a name="Demo_Stores"></a>Demo Stores</strong></h2>
<p style="text-align: justify;">Here are two Demo Stores:</p>
<p style="text-align: justify;"><a rel="nofollow" href="http://www.data-diggers.com/contribs/query-cache/demo-stores/with-query-cache/">Demo Store with Query Cache installed</a></p>
<p style="text-align: justify;"><a rel="nofollow" href="http://www.data-diggers.com/contribs/query-cache/demo-stores/without-query-cache/">Demo Store without Query Cache installed</a></p>
<p style="text-align: justify;">Take a look at footer of each store. As You can see Query Cache greatly reduced number of executed queries.</p>
<h2 style="text-align: justify;"><strong>Is it free? (Yes)</strong></h2>
<p style="text-align: justify;">Yes, it is. You can use it on unlimited number of sites without any costs. You can redistribute it, change the source code (but leave us as original authors) etc. You can&#8217;t sell it or make any profit of it.</p>
<h2 style="text-align: justify;"><strong>Stay in touch<br />
</strong></h2>
<p style="text-align: justify;">We plan to release new version of Query Cache soon, with some new features that will further reduce number of executed queries and improve performance of Your store. Just type Your address here to be notified of new versions of Query Cache (You&#8217;ll receive only updates on Query Cache). Quick info: We hate spam, Your email will not be given to anyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.data-diggers.com/index.php/2008/12/query-cache-for-zen-cart-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
