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

Design Issue Query count in footer different than query count in debug page

Discussion in 'Resolved Bug Reports' started by rellect, Apr 13, 2015.

  1. rellect

    rellect Well-Known Member

    When using $template->create() to get a template (for example in the templates hook listener), if the template isn't preloaded it will generate a query to fetch the template (assuming the templates are not saved as files).
    In this case, the query count in the footer seems not to include the above query into the total. When looking in the debug page, it does show the correct amount of queries.
  2. Mike

    Mike XenForo Developer Staff Member

    The debug information is rendered before the PAGE_CONTAINER so if you're doing something after that, this is generally expected. Not ideal, but the query count/memory usage should be considered to be more of a general guide and the full debug page may provide slightly more accurate details.
    Liam W and rellect like this.

Share This Page