<?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>Marcus Povey &#187; caching</title>
	<atom:link href="http://www.marcus-povey.co.uk/tag/caching/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marcus-povey.co.uk</link>
	<description>Making the world a better place, one byte at a time...</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:13:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<atom:link rel='hub' href='http://www.marcus-povey.co.uk/?pushpress=hub'/>
		<item>
		<title>Weekly roundup: Caching in</title>
		<link>http://www.marcus-povey.co.uk/2008/11/07/weekly-roundup-caching-in/</link>
		<comments>http://www.marcus-povey.co.uk/2008/11/07/weekly-roundup-caching-in/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 17:28:50 +0000</pubDate>
		<dc:creator>Marcus Povey</dc:creator>
				<category><![CDATA[elgg]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[optimisation]]></category>

		<guid isPermaLink="false">http://www.marcus-povey.co.uk/?p=114</guid>
		<description><![CDATA[This week saw the election of a new president of America &#8211; triggering a massive spike in hope levels worldwide. At last the Bush years are drawing to a close. On the Elgg front, I spent a good portion of the week optimising various parts of the system and drastically reducing the number of queries [...]]]></description>
			<content:encoded><![CDATA[<p>This week saw the election of a new president of America &#8211; triggering a massive spike in hope levels worldwide. At last the Bush years are drawing to a close.</p>
<p>On the Elgg front, I spent a good portion of the week optimising various parts of the system and drastically reducing the number of queries per page. </p>
<p>A lot of this was done by introducing a query cache into database.php which caches the results of individual queries. I also introduced some new delayed execution functionality on database queries &#8211; letting you delay some database operations until after the page has been sent to the browser.</p>
<p>All of these tweaks have slashed the number of queries being executed per page.</p>
<p>This week I also began to experiment with <a href="http://www.danga.com/memcached/">memcache</a> &#8211; currently caching entities, datalists, metastrings and meta data. Reducing the number of queries per page to ~7 once the cache has been populated.</p>
<p>I also did a little bit of work on the activity stream, river and syndication&#8230; but more on this later&#8230;</p>
<div class="wsbuttons">
	<div class="shareblob facebook">
		<div class="fb-like" data-href="http://www.marcus-povey.co.uk/2008/11/07/weekly-roundup-caching-in/" data-send="false" data-layout="box_count" data-width="60" data-show-faces="false" data-colorscheme="light"></div>
	</div>

	<div class="shareblob google">
		<div class="g-plusone" data-size="tall" data-href="http://www.marcus-povey.co.uk/2008/11/07/weekly-roundup-caching-in/"></div>
	</div>

	<div class="shareblob twitter">
		<div class="twitter">
			<a href="https://twitter.com/share?url=http%3A%2F%2Fwww.marcus-povey.co.uk%2F2008%2F11%2F07%2Fweekly-roundup-caching-in%2F&count=vertical" class="twitter-share-button" data-lang="en">Tweet</a>
			<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
		</div>
	</div>

</div>
	]]></content:encoded>
			<wfw:commentRss>http://www.marcus-povey.co.uk/2008/11/07/weekly-roundup-caching-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

