original_string: protected function executeQuery($cache = true) {
          if($this->logQueries) {$this->writeQueryToLog();}
          if($cache && $this->cacheEnabled && $this->getCache($this->key)) {
              return $this->cacheValue;
          }
          try{
              $this->query = $this->db->prepare($this->sql);
              $this->bindValues($this->values);
              $this->query->execute();
              unset($this->values);
              $this->values = [];
          }
          catch(\Exception $e) {
              unset($this->values);
              $this->values = [];
              $this->error($e);
          }
      }
code: protected function executeQuery($cache = true) {
          if($this->logQueries) {$this->writeQueryToLog();}
          if($cache && $this->cacheEnabled && $this->getCache($this->key)) {
              return $this->cacheValue;
          }
          try{
              $this->query = $this->db->prepare($this->sql);
              $this->bindValues($this->values);
              $this->query->execute();
              unset($this->values);
              $this->values = [];
          }
          catch(\Exception $e) {
              unset($this->values);
              $this->values = [];
              $this->error($e);
          }
      }
code_tokens: protected function executeQuery ( $ cache = true ) { if ( $ this -> logQueries ) { $ this -> writeQueryToLog ( ) ; } if ( $ cache && $ this -> cacheEnabled && $ this -> getCache ( $ this -> key ) ) { return $ this -> cacheValue ; } try { $ this -> query = $ this -> db -> prepare ( $ this -> sql ) ; $ this -> bindValues ( $ this -> values ) ; $ this -> query -> execute ( ) ; unset ( $ this -> values ) ; $ this -> values = [ ] ; } catch ( \ Exception $ e ) { unset ( $ this -> values ) ; $ this -> values = [ ] ; $ this -> error ( $ e ) ; } }
docstring: Execute the current query if no cache value is available
  @param boolean $cache If the cache should be checked for the checked for the values of the query set to true else set to false
  @return mixed If a cached value exists will be returned else if cache is not checked and query is executed will not return anything
docstring_tokens: Execute the current query if no cache value is available