This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Website Render Time


avatar
DSF2 19
From: -
Website Render Time

There is a way to see how fast website is generated ?

Thanx

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Website Render Time
avatar
0
From: -
Website Render Time

Hi,

Thanks for the tip!
1 Re: Website Render Time
avatar
Administrator
1340
From: Vienna, Austria
Website Render Time

You really should upgrade your PHP installation to 4.4.2. There are known security issues with 4.3.9
1 Re: Website Render Time
avatar
0
From: -
Website Render Time

I double checked the mods on my end, and it still displays negative values sometimes.. Ah well.. another Win32 short-coming I guess. Slightly Frowning Face Granted my version of PHP is a bit old. Smiling Face (4.3.9)
1 Re: Website Render Time
avatar
Administrator
1340
From: Vienna, Austria
Website Render Time

I guess I need a faster testserver Grinning Face. At least it seems to work fine on my test install (running under MacOS/Darwin with PHP 5.0.5).
1 Re: Website Render Time
avatar
0
From: -
Website Render Time

Either I did this wrong or my server is super fast... Many times I get negative numbers! Smiling Face

Example:
Render time: -0.233288 seconds

Maybe the Win32 version of PHP has a calculation bug?!
1 Re: Website Render Time
avatar
Administrator
1340
From: Vienna, Austria
Website Render Time

Open core.php and add after:

error_reporting(0);

the following line:

$time_now = microtime();

Then open site_footer and replace:

global $insert;

with:

global $insert,$time_now;

$render_time = microtime() - $time_now;

and add somewhere in the HTML part of the template:

Render time: $render_time seconds

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.