<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Joomla Speed's Weblog</title>
	<atom:link href="http://joomlaspeed.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://joomlaspeed.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 21 Oct 2008 18:47:28 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='joomlaspeed.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/8db61925b6c76c853a890532f0f2eb53?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Joomla Speed's Weblog</title>
		<link>http://joomlaspeed.wordpress.com</link>
	</image>
			<item>
		<title>Speeding up Joomla 1.5x</title>
		<link>http://joomlaspeed.wordpress.com/2008/09/22/speeding-up-joomla-15x/</link>
		<comments>http://joomlaspeed.wordpress.com/2008/09/22/speeding-up-joomla-15x/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 19:53:20 +0000</pubDate>
		<dc:creator>joomlaspeed</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[1.5x]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[joomla speed]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://joomlaspeed.wordpress.com/?p=3</guid>
		<description><![CDATA[Attention: I know that there are bugs, with my fix based on the configuration of your menu system. Since I can not replicate these issues myself, I can not fix them on my own. I would like to complete the fix for those people who may want to use joomla with dynamic caching. If you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joomlaspeed.wordpress.com&blog=4942720&post=3&subd=joomlaspeed&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Attention:</strong> I know that there are bugs, with my fix based on the configuration of your menu system. Since I can not replicate these issues myself, I can not fix them on my own. I would like to complete the fix for those people who may want to use joomla with dynamic caching. If you are interested please email me at joomlafixd@yahoo.com.</p>
<p>It’s no secret that there are serious performance problems with Joomla 1.5x. Especially if you’re not using caching. Right out of the box, most sites see memory and CPU usage go through the roof with each request. This problem is well documented, and even Joomla’s own website has pages dedicated to helping users come up with fixes and work-arounds.</p>
<p>After much frustration on a recent project, I decided to investigate the problem. Below is what I discovered.</p>
<p>First: By turning off the Main Menu in the Module Manager, there is vast improvement in performance to be found. This is where most of the resources are greedily consumed.</p>
<p>Next: To recreate the functionality of the menu system, I created a hack that caches the HTML for all of Joomla’s menus. I’ve made this available to the public, below.</p>
<p>Note: The project I worked on has a fairly large menu, about five levels deep. But this hack should work for any size menu.</p>
<p>Here are the results.</p>
<p><strong>Before</strong><br />
Profile Information<br />
Application afterLoad: 0.002 seconds, 0.43 MB<br />
Application afterInitialise: 0.214 seconds, 2.28 MB<br />
Application afterRoute: 0.341 seconds, 3.78 MB<br />
Application afterDispatch: 0.482 seconds, 4.33 MB<br />
Application afterRender: 5.377 seconds, 6.02 MB<br />
Memory Usage<br />
6346872<br />
45 queries logged</p>
<p><strong>After</strong><br />
Profile Information<br />
Application afterLoad: 0.002 seconds, 0.43 MB<br />
Application afterInitialise: 0.191 seconds, 2.28 MB<br />
Application afterRoute: 0.308 seconds, 3.78 MB<br />
Application afterDispatch: 0.446 seconds, 4.33 MB<br />
Application afterRender: 0.708 seconds, 5.16 MB<br />
Memory Usage<br />
5455480<br />
45 queries logged</p>
<p>Notice the afterRender where the Top Menu module executes. Significant time and memory has been shaved off.</p>
<p>While the performance improvements are most noticeable when you’re not using caching (either free or purchased), this hack will work alongside all the caching plug-ins available.</p>
<p>Also, I have not come up with an elegant way to make a plug-in, so you’ll have to replace some files to get it to start working. (If you have suggestions on how best to make this a plug-in, let me know.)</p>
<p>Instructions</p>
<p>1. Make a back-up copy of these files in case it does not work properly for your install. Then copy helper.php under your docs/modules/mod_mainmenu<br />
item.php and list.php under /docs/administrator/components/com_menus/models.</p>
<p>2. Replace those files with these, under the same directory: <a href="http://dl.getdropbox.com/u/204554/helper.php">helper.php</a>, <a href="http://dl.getdropbox.com/u/204554/item.php">item.php</a>, and <a href="http://dl.getdropbox.com/u/204554/list.php">list.php</a>.</p>
<p>3. Make sure that the docs/cache folder is write-able, you should start seeing .html files appear with in your cache directory. The html files are all the menu files cached so that Joomla does not have to execute or build the data structure to write them out. The source files that go in the administrator component will take care of menu changes by deleting the specific cache.</p>
<p><strong>Update on joomlacode:</strong></p>
<p>There are two patches <a href="http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;tracker_item_id=13160">mines</a> and this <a href="http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;tracker_item_id=12864" target="_blank">one</a>. My patch should be a greater performance boost, but as I said this is more a work around or hack. I do not know if joomla is addressing this in any other fashion.</p>
<p>Also if you are experiencing bugs, please email me at joomlafixd@yahoo.com, so maybe I can work out a universal solution in case joomla does not come up with an actual fix.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joomlaspeed.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joomlaspeed.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joomlaspeed.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joomlaspeed.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joomlaspeed.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joomlaspeed.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joomlaspeed.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joomlaspeed.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joomlaspeed.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joomlaspeed.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joomlaspeed.wordpress.com&blog=4942720&post=3&subd=joomlaspeed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://joomlaspeed.wordpress.com/2008/09/22/speeding-up-joomla-15x/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/81a765fabe54526b565f2bda14541d03?s=96&#38;d=identicon" medium="image">
			<media:title type="html">joomlaspeed</media:title>
		</media:content>
	</item>
	</channel>
</rss>