src/WPametu/DB/Model.php
public function get_row($query = '', $ignore_cache = false){
        if( empty($query) ){
            $query = $this->build_query();
            $this->clear();
        }
        if( $this->cache_exist($query) && !$ignore_cache ){
            return $this->get_cache($query);
        }else{
            return $this->db->get_row($query);
        }
    }
public function get_row($query = '', $ignore_cache = false){
        if( empty($query) ){
            $query = $this->build_query();
            $this->clear();
        }
        if( $this->cache_exist($query) && !$ignore_cache ){
            return $this->get_cache($query);
        }else{
            return $this->db->get_row($query);
        }
    }
public function get_row ( $ query = '' , $ ignore_cache = false ) { if ( empty ( $ query ) ) { $ query = $ this -> build_query ( ) ; $ this -> clear ( ) ; } if ( $ this -> cache_exist ( $ query ) && ! $ ignore_cache ) { return $ this -> get_cache ( $ query ) ; } else { return $ this -> db -> get_row ( $ query ) ; } }
Returns row object

@param string $query
@param bool $ignore_cache
@return mixed|null
Returns row object