db_Select('generic', '*', "gen_type='empty_cache'")) { $sql->db_Insert('generic', "0,'empty_cache','".time()."','0','','0',''"); } else { $row = $sql->db_Fetch(); if (($row['gen_datestamp']+604800) < time()) // If cache not cleared in last 7 days, clear it. { require_once(e_HANDLER."cache_handler.php"); $ec = new ecache; $ec->clear(); $sql->db_Update('generic', "gen_datestamp='".time()."' WHERE gen_type='empty_cache'"); } } } } if (strpos(e_SELF.'?'.e_QUERY, 'menus.php?configure') === FALSE) { parse_admin($ADMIN_FOOTER); } $eTimingStop = microtime(); global $eTimingStart, $eTraffic; $rendertime = number_format($eTraffic->TimeDelta( $eTimingStart, $eTimingStop ), 4); $db_time = number_format($db_time,4); $rinfo = ''; if($pref['displayrendertime']){ $rinfo .= "Render time: {$rendertime} second(s); {$db_time} of that for queries. "; } if($pref['displaysql']){ $rinfo .= "DB queries: ".$sql -> db_QueryCount().". "; } if(isset($pref['displaycacheinfo']) && $pref['displaycacheinfo']){ $rinfo .= $cachestring."."; } echo ($rinfo ? "\n