Page 1 of 1

Too much data, Data :)

PostPosted: Sun Dec 30, 2007 12:35 am
Author: spaniel
My members are still overwhelmed by how many features there are on IntegraMod but what often baffles them most is all the computer language flying about like

[code]Page generation time]

in the footer.


I don't even understand it and I run the forum. Is there a way to remove that from the footer and maybe move it to the ACP?


My members (who just about kno how to switch a computer on) are frightened of such things <img>

Many thanks for such an ingenius project.

Re: Too much data, Data :)

PostPosted: Sun Dec 30, 2007 6:05 am
Author: Helter
that tels you how fast the page loaded in your browser. It also tells you what percentage of that time was caused by the files (php) and what pecentage of the time was caused by the database (sql). It also tells you how many database queries (information requests) were made in order to load the page.

It is not important info unless your pages are loading slowly. If the page generation time is below 1 second, but your still loading slowly, the problem may be your computer. If the page generation get high .. over a few seconds, you can see if the problem is in your files (php) or your database (sql). It is not quite that black and white, but it give you some information to use to look for the problem

you may remove it by opening forum root/includes/page_tail.php
find and delete this code

Code: Select all
 /* Un-comment the line below to restrict Admins only to view page generation info */  //if( ($userdata['session_logged_in']) and ($userdata['user_level'] == ADMIN) )//{     $gzip_text = ($board_config['gzip_compress']) ? 'GZIP enabled' ] + $mtime[0];     $endtime = $mtime;       $gentime = round(($endtime - $starttime), 4);       $sql_time = round($db->sql_time, 4);       $sql_part = round($sql_time / $gentime * 100);     $php_part = 100 - $sql_part;  //}*/if( defined('DEBUG') ){     $debug_out = '<div>[Page generation time: '. $gentime .'s (PHP: '. $php_part .'% | SQL: '. $sql_part .'%) | SQL queries: '. $excuted_queries .' | '. $gzip_text .' | '. $debug_text .']</div>';}else{     $debug_out = '<br>';}  


but it is kinda like driving a car with no speedometer

Re: Too much data, Data :)

PostPosted: Sun Dec 30, 2007 10:58 am
Author: spaniel
Thanks a lot for the speedy response. With my "how do i switch the computer on?" members it's better they don't see such data. The number of times they've messaged me to tell me they think they've broken the site is enough to make anyone wanna remove it. Stats frighten people lol.

I will bookmark this thread tho and re-add the code when i need to look at the data. I doubt i'll need to tho as IntergraMod works like a brand new car! Very shiny and fast.


Many thanks.

Re: Too much data, Data :)

PostPosted: Sun Dec 30, 2007 11:21 am
Author: CaNNon
I'm not sure where the tread is but you can set that so just admin see it and may be a better idea in your case.

PostPosted: Sun Dec 30, 2007 12:56 pm
Author: tmotley
I found it... and I posted something helpful! That's rare indeed! <img>

http://www.integramod.com/forum/viewtopic.php?t=3981