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

Debug mode reports different query count

Discussion in 'XenForo Development Discussions' started by JulianD, Jul 23, 2013.

  1. JulianD

    JulianD Well-Known Member

    According to this tutorial (http://xenforo.com/community/threads/how-to-use-template-hooks.13167/) @Kier explains that is not always necessary to preload templates in my addons. That one trick to find out if I needed to preload my templates was to enable debug mode, and compare the query count with my addons enabled and disabled. I was confident I didn't need to preload my templates because the query count reported in the footer did not change at all with my addons enabled.

    But clicking on the link that lets you view detailed debug information, the query count is very different from the value reported in the forums, and a lot of extra queries are the ones fetching templates for my addons and other developer's addons.

    This left me with a doubt: Are my templates getting preloaded correctly right now? Or shouldn't I trust the query count reported in the forums? Better to preload everything?
    Last edited: Jul 23, 2013

Share This Page