PHP Live! Help Desk
» Help Desk Home » Tips and Tricks » Improve server performance by adjusting some PHP Live! variables
Improve server performance by adjusting some PHP Live! variables

If you have numbers of operators online at any given time or if your website receives high volume of traffic, you may want to optimize some PHP Live! variables to limit server resource usage and overhead.  The PHP Live! variables are located within the file phplive/API/Util_Vars.php 

 

Typically, the default values will be fine for most websites.  However, if you receive more then 50,000+ visitors a day or have more then 5 operators online at any given time, you may want to tweak the values for your needs.  If you are wanting to adjust some values, DO NOT attempt to modify the phplive/API/Util_Vars.php file directly.  Instead, create a new file phplive/API/Util_Extra.php and place the modified values there.  This way, if we introduce a new value to the Util_Vars.php file, it will not override your adjusted settings.

 

An example phplive/API/Util_Extra.php for sites receiving 50,000+ visitors a day:

 <?php

$VARS_FOOTPRINT_LOG_EXPIRE = 25 ;
$VARS_REFER_LOG_EXPIRE = 15 ;
$VARS_IP_LOG_EXPIRE = 20 ;
$VARS_JS_ICON_CHECK = 35 ;

?>

 

Additionally, you can disable the PHP Live! system from making an entry to the DB for each visitor footprint altogether.  To disable footprint logging, access the PHP Live! Setup->Report: Traffic area.  From here, there is a Settings sub menu where the footprint logging can be switched on or off.

 

If you have more then 5 operators online at any given time, you may want to adjust the value $VARS_JS_REQUESTING to 3 (default value is 2).  Simply add the following adjusted variable:

 

$VARS_JS_REQUESTING = 3 ;

Was this documentation helpful to you?