| Re: WRONG code ! xoops load time and querys code |
| by phppp on 2005/8/16 18:28:32 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. |
| Re: WRONG code ! xoops load time and querys code |
| by indream on 2005/8/16 17:59:04 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. |
| Re: WRONG code ! xoops load time and querys code |
| by Mithrandir on 2005/8/16 17:37:03 haven't experienced increased load on this. Is it the same, if you enable the MySQL debug window? The same code is applied there. |
| WRONG code ! xoops load time and querys code |
| by indream on 2005/8/16 16:21:15 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 !!! le="color: #000000"><?php <{php}> echo round(($GLOBALS['xoopsLogger']->dumpTime()), 3)." sec, ".count($GLOBALS['xoopsLogger']->queries)." query";<{/php}> what is wrong in this code ? |