• Welcome to Simple Machines Community Forum. Please login or sign up.
September 22, 2021, 02:06:51 PM


Follow SMF on Twitter.

a very strange question

Started by billrune, September 12, 2019, 11:47:18 AM

Previous topic - Next topic


at MessageIndex.php
under function MessageIndex   after loadTemplate('MessageIndex');
i just add this to make a test

   $context['topics'][58] = '44';

after it add a lot of queries. 46 queries.
if only add return;  then only 15 queries.

anyone know what's the problem?  it's only define a data.

thank you very much.


you are adding something to the context array... the contyext array is huge and contains a whole ton of data drawn from a variety of places (depending on the page)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."


More importantly, your installation sounds like it's messed up because that number of queries doesn't happen on an unmodified 2.0.

I really wouldn't just randomly change things, it has a huge propensity to break your site in other ways.
No good deed goes unpunished
All helpful urges should be circumvented