<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: How to hunt for Wordpress performance hogs</title>
	<atom:link href="http://dbzer0.com/blog/how-to-hunt-for-wordpress-performance-hogs/feed" rel="self" type="application/rss+xml" />
	<link>http://dbzer0.com/blog/how-to-hunt-for-wordpress-performance-hogs</link>
	<description>"Frustratingly brilliant reasoning" -- The Atheist Blogger</description>
	<lastBuildDate>Sat, 20 Mar 2010 02:34:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: FreewareMatter</title>
		<link>http://dbzer0.com/blog/how-to-hunt-for-wordpress-performance-hogs/comment-page-1#comment-52237</link>
		<dc:creator>FreewareMatter</dc:creator>
		<pubDate>Fri, 05 Jun 2009 20:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://dbzer0.com/?p=647#comment-52237</guid>
		<description>I have the same problems with WP. I&#039;ve turned off Bad Behavior, but the CPU load is still high. So sad, I don&#039;t know what I have to do now. </description>
		<content:encoded><![CDATA[<p>I have the same problems with WP. I&#039;ve turned off Bad Behavior, but the CPU load is still high. So sad, I don&#039;t know what I have to do now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Db0</title>
		<link>http://dbzer0.com/blog/how-to-hunt-for-wordpress-performance-hogs/comment-page-1#comment-4771</link>
		<dc:creator>Db0</dc:creator>
		<pubDate>Tue, 29 Apr 2008 20:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://dbzer0.com/?p=647#comment-4771</guid>
		<description>I tried in vain this afternoon to achieve this but it does not seem to work :(
The &lt;code&gt;print_r($wpdb-&gt;queries);&lt;/code&gt; part will just return blank.
I do not know if I did the wp-config.php edit wrong but I simply copy-pasted your DEFINE command in it. I tried to remove the quotes you used (which seem weirdly formatted) and replace them with normal quotes but that just resulted in an internal server error :-/</description>
		<content:encoded><![CDATA[<p>I tried in vain this afternoon to achieve this but it does not seem to work <img src='http://dbzer0.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
The <code>print_r($wpdb-&gt;queries);</code> part will just return blank.<br />
I do not know if I did the wp-config.php edit wrong but I simply copy-pasted your DEFINE command in it. I tried to remove the quotes you used (which seem weirdly formatted) and replace them with normal quotes but that just resulted in an internal server error :-/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://dbzer0.com/blog/how-to-hunt-for-wordpress-performance-hogs/comment-page-1#comment-4765</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Thu, 24 Apr 2008 04:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://dbzer0.com/?p=647#comment-4765</guid>
		<description>You can find out the actual queries getting called, plus the caller and execution time. In your wp-config.php file put:

define(&#039;SAVEQUERIES&#039;,true);

Then in your template footer place:

&lt;code&gt;

global $wpdb;
print_r($wpdb-&gt;queries);

&lt;/code&gt;

If you want to keep it so the whole world doesn&#039;t see it then you can wrap that code in a if block like:

if(current_user_can(&quot;level_10&quot;)){
...the code...
}

That way only people logged in as full administrator will see the output. I use a similar method on a couple of large scale WP sites I run so that I can just add ?diag=1 after the URL and get a diagnostic output.</description>
		<content:encoded><![CDATA[<p>You can find out the actual queries getting called, plus the caller and execution time. In your wp-config.php file put:</p>
<p>define(&#8216;SAVEQUERIES&#8217;,true);</p>
<p>Then in your template footer place:</p>
<p><code></p>
<p>global $wpdb;<br />
print_r($wpdb-&gt;queries);</p>
<p></code></p>
<p>If you want to keep it so the whole world doesn&#8217;t see it then you can wrap that code in a if block like:</p>
<p>if(current_user_can(&#8220;level_10&#8243;)){<br />
&#8230;the code&#8230;<br />
}</p>
<p>That way only people logged in as full administrator will see the output. I use a similar method on a couple of large scale WP sites I run so that I can just add ?diag=1 after the URL and get a diagnostic output.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Db0</title>
		<link>http://dbzer0.com/blog/how-to-hunt-for-wordpress-performance-hogs/comment-page-1#comment-4764</link>
		<dc:creator>Db0</dc:creator>
		<pubDate>Wed, 23 Apr 2008 22:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://dbzer0.com/?p=647#comment-4764</guid>
		<description>Unfortunately that was not the case. I do not know what kind of misconfiguration I might have done as I haven&#039;t changed anything. Maybe it just doesn&#039;t play nice with my theme. I&#039;s a pity though because I liked it in general.

In any case, my current blocker seems to be managing quite well for now so unless I start to get spammed again, I&#039;ll keep it off.</description>
		<content:encoded><![CDATA[<p>Unfortunately that was not the case. I do not know what kind of misconfiguration I might have done as I haven&#8217;t changed anything. Maybe it just doesn&#8217;t play nice with my theme. I&#8217;s a pity though because I liked it in general.</p>
<p>In any case, my current blocker seems to be managing quite well for now so unless I start to get spammed again, I&#8217;ll keep it off.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Hampton</title>
		<link>http://dbzer0.com/blog/how-to-hunt-for-wordpress-performance-hogs/comment-page-1#comment-4763</link>
		<dc:creator>Michael Hampton</dc:creator>
		<pubDate>Wed, 23 Apr 2008 20:18:27 +0000</pubDate>
		<guid isPermaLink="false">http://dbzer0.com/?p=647#comment-4763</guid>
		<description>You should have contacted the author of Bad Behavior. Obviously something is wrong in your setup, because Bad Behavior&#039;s run time is measured in milliseconds, not seconds. Probably you needed to turn off verbose logging.</description>
		<content:encoded><![CDATA[<p>You should have contacted the author of Bad Behavior. Obviously something is wrong in your setup, because Bad Behavior&#8217;s run time is measured in milliseconds, not seconds. Probably you needed to turn off verbose logging.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
