Design issue Different DB profiler output. Footer debug vs _debug=1

Chris D

XenForo developer
Staff member
Ok, this one keeps cropping up for me. And I can't recall if it has always been the case or just a XenForo 1.2.x thing.

I get a different debug output depending on where I am looking for the same page.

So, this is what I see in the footer:

upload_2013-9-1_9-14-46.webp

And this is what I see at _debug=1:

upload_2013-9-1_9-15-11.webp

I've never been able to rationalise why there's a difference.


I get the same experience with all listeners disabled.

Is there 3 queries that are deliberately not counted in the footer? Or is this some sort of bug?
 
I have the same number with no listeners enabled.

About the difference, I have seen it before. Mostly because queries are made after the PAGE_CONTAINER template is rendered.
 
About the difference, I have seen it before. Mostly because queries are made after the PAGE_CONTAINER template is rendered.
This is correct.

It has to do with how the process works - the count is in the PAGE_CONTAINER, so it doesn't count the actual rendering in it. It's just a general guidance.
 
Top Bottom