public function close() { if (!$this->_isExit) { $this->_isExit = true; //锁组件被启动 自动解锁 if (defined('LOCKRUN')) { Com_Lock::unLock(); } $this->push_cache(); $this->session_close(); $this->cache_close(); $this->db_close(); // if(IS_FRONT){ // Com_Log::log("action={$_POST['action']}|command={$_POST['command']}\ninclude files=".var_export(get_included_files(), true), 'corefile', 1); // } //DEBUG组件被启动 自动输出 if (defined('LOGRUN')) { Com_Log::output(); } if (IS_FRONT) { ob_end_flush(); } // global $scriptStartTime; // if($scriptStartTime){ // save_xhprof(); // } } }