1
indream
WRONG code ! xoops load time and querys code
  • 2005/8/16 16:21

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


i m find this code in any template and i am use this code in my theme.html

bu when i use this code in my theme.html
my server cpu ram usage is highly !
and some times server down !!!

<{php}> echo round(($GLOBALS['xoopsLogger']->dumpTime()), 3)." sec, ".count($GLOBALS['xoopsLogger']->queries)." query";<{/php}>



what is wrong in this code ?

2
Mithrandir
Re: WRONG code ! xoops load time and querys code

haven't experienced increased load on this.

Is it the same, if you enable the MySQL debug window? The same code is applied there.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
indream
Re: WRONG code ! xoops load time and querys code
  • 2005/8/16 17:59

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


i m open a php debug
and clear templates_c and cache folder and try refresh.

load time and opened sql querys show code work,
but phpdebug not showing any error message


edit: my server windows, apache, mysql.

4
phppp
Re: WRONG code ! xoops load time and querys code
  • 2005/8/16 18:28

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


I had been suffering from similar problems and it took me long time to figure out.
In the following case, memory consumption is tremendously high (for me it only happens with my Windows+apache+PHP) :

function_one(function_two(), $args);

where

function function_one($string, $args)
{...}
function function_two()
{
return $someString;
}


Then you have to change to:

$mystring = function_two();
function_one($mystring, $args);


I do not know what the cause is, beyond my PHP (or server config) knowledge.

Login

Who's Online

164 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 164


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits