private function saveCache($result) {
        if (!$result) return false;
        $cache = DATA . 'select' . DIRECTORY_SEPARATOR . $this->encode($this->getName()) . '.php';
        return Util::updateConfig($cache,
                        array($this->encode($this->query . serialize($this->values)) => $this->encode(serialize($result))));
    }
private function saveCache($result) {
        if (!$result) return false;
        $cache = DATA . 'select' . DIRECTORY_SEPARATOR . $this->encode($this->getName()) . '.php';
        return Util::updateConfig($cache,
                        array($this->encode($this->query . serialize($this->values)) => $this->encode(serialize($result))));
    }
private function saveCache ( $ result ) { if ( ! $ result ) return false ; $ cache = DATA . 'select' . DIRECTORY_SEPARATOR . $ this -> encode ( $ this -> getName ( ) ) . '.php' ; return Util :: updateConfig ( $ cache , array ( $ this -> encode ( $ this -> query . serialize ( $ this -> values ) ) => $ this -> encode ( serialize ( $ result ) ) ) ) ; }
Saves the given result, if valid, to cache for future uses
@param array $result
@return boolean
Saves the given result if valid to cache for future uses