$limita ? 15 : 15, "3286833622" => $limita ? 60*24 : 60 ]); die; } if($DATI["INDI_BUFFER"]){ //##################### SADMIN ################### //admin rapida e debug if($_GET['indi_sadmin'] or ($DATI['indi_sadmin'] == "SI" and $DATI['chi_sono'] == "noi" and stristr($_SERVER['HTTP_USER_AGENT'], "httrack") === false)) { require(INDI_PATH."sadmin.inc.php"); } //pulisco, Tolgo tag se sono on-line o se sono rimasti x sbaglio $output_sito = str_replace("#SADMIN#","",$output_sito); //##################### SADMIN FINE ################### if($DATI['minifyHtml']){ // require($CONF['libPath']."htmlMinifier/tiny-html-minifier.php"); // $output_sito = TinyMinify::html($output_sito); $output_sito = indiMinimizzaHtml($output_sito); } if($DATI['cacheInteraPaginaInterval'] && $interaPaginaCacheKey){ if($DATI['cacheInteraPaginaEngine'] == 'file'){ if(!is_file($interaPaginaCacheKey) || (time() - filemtime($interaPaginaCacheKey)) > $DATI['cacheInteraPaginaInterval']) file_put_contents($interaPaginaCacheKey, $output_sito); } else indiCacheSet($interaPaginaCacheKey, $output_sito, $DATI['cacheInteraPaginaInterval']); } //debug performance if(!in_array("x_$DATI[sito]",array("x_admin","x_ipib")) and stristr($_SERVER['HTTP_USER_AGENT'],"wget") === FALSE and $_indi_admin_refresh_db == 0 and $DATI['indi_404'] == 0) { //cecca 24/03/2016 - con ale, su export toysforyou non aveva senso if (!$DATI["no_check_performance"]) { //DEBUG VARI $_dbg_time = indi_time(); $_dbg_mem = indi_memory(); //loggo pagine lente if($_dbg_time >= 15) { indi_log("ALERT PERFORMANCE - Pagina lenta > 15 sec - $_dbg_time"); } //$limitMb = 50; $limitMb = 500; //cecca, aumento perchè 50 era poco $k = 1000000; //loggo pagine tanta memoria if($_dbg_mem >= ($limitMb*$k)) { indi_log("ALERT PERFORMANCE - Memoria > $limitMb MB - ".round($_dbg_mem/$k)." MB"); } } } //################# ERRORI GRAVI INDI DA VISUALIZZARE SUBITO SOLO IN LOCALE ############### /*if($GLOBALS['CONF']['dove_sono'] == 'loc' and is_tnx() and $DEBUG) { require_once(INDI_PATH.'_lib/firephp-1.0.0b1rc7/lib/FirePHP/Init.php'); //ob_start(); $firephp = FirePHP::getInstance(true); foreach((array)$DEBUG as $k => $v) { //$firephp->trace('Trace Label'); if($v['tipo'] == "inf") { $DEBUG_I[$v['nome']] = $v['vari']; $firephp->info($v['vari'],$v['nome']."(".$v[tempo].")"); } if($v['tipo'] == "err") $firephp->error($v['vari'],$v['nome']."(".$v[tempo].")"); if($v['tipo'] == "dbg") $firephp->warn($v['vari'],$v['nome']."(".$v[tempo].")"); } $firephp->info($DEBUG_I); } *///################# ERRORI GRAVI INDI DA VISUALIZZARE SUBITO SOLO IN LOCALE ############### } ?>