• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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

Chris D

XenForo developer
Staff member
#1
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.png

And this is what I see at _debug=1:

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

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?
 

xfrocks

Well-known member
#2
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.
 

Mike

XenForo developer
Staff member
#3
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.