1. 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

Discussion in 'Resolved Bug Reports' started by Chris D, Sep 1, 2013.

  1. Chris D

    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:


    And this is what I see at _debug=1:


    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?
  2. xfrocks

    xfrocks Well-Known Member

    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.
    Chris D likes this.
  3. Mike

    Mike XenForo Developer Staff Member

    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.
    Chris D likes this.

Share This Page