src/Readdle/Database/FQDBExecutor.php
private function checkConnection()
    {
        if ($this->_databaseServer !== self::DB_MYSQL) {
            return;
        }

        $interval = (time() - (int)$this->_lastCheckTime);

        if ($interval >= self::MYSQL_CONNECTION_TIMEOUT) {
            $this->connect();
        }
    }
private function checkConnection()
    {
        if ($this->_databaseServer !== self::DB_MYSQL) {
            return;
        }

        $interval = (time() - (int)$this->_lastCheckTime);

        if ($interval >= self::MYSQL_CONNECTION_TIMEOUT) {
            $this->connect();
        }
    }
private function checkConnection ( ) { if ( $ this -> _databaseServer !== self :: DB_MYSQL ) { return ; } $ interval = ( time ( ) - ( int ) $ this -> _lastCheckTime ) ; if ( $ interval >= self :: MYSQL_CONNECTION_TIMEOUT ) { $ this -> connect ( ) ; } }
if last query was too long time ago - reconnect
if last query was too long time ago - reconnect