lib/Minify/Cache/File.php
public function fetch($id)
    {
        if (!$this->locking) {
            return file_get_contents($this->path . '/' . $id);
        }

        $fp = fopen($this->path . '/' . $id, 'rb');
        if (!$fp) {
            return false;
        }

        flock($fp, LOCK_SH);
        $ret = stream_get_contents($fp);
        flock($fp, LOCK_UN);
        fclose($fp);

        return $ret;
    }
public function fetch($id)
    {
        if (!$this->locking) {
            return file_get_contents($this->path . '/' . $id);
        }

        $fp = fopen($this->path . '/' . $id, 'rb');
        if (!$fp) {
            return false;
        }

        flock($fp, LOCK_SH);
        $ret = stream_get_contents($fp);
        flock($fp, LOCK_UN);
        fclose($fp);

        return $ret;
    }
public function fetch ( $ id ) { if ( ! $ this -> locking ) { return file_get_contents ( $ this -> path . '/' . $ id ) ; } $ fp = fopen ( $ this -> path . '/' . $ id , 'rb' ) ; if ( ! $ fp ) { return false ; } flock ( $ fp , LOCK_SH ) ; $ ret = stream_get_contents ( $ fp ) ; flock ( $ fp , LOCK_UN ) ; fclose ( $ fp ) ; return $ ret ; }
Fetch the cached content

@param string $id cache id (e.g. a filename)

@return string
Fetch the cached content