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?
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: