src/FileCache.php
protected function getDirectory($id)
    {
        $hash = sha1($id, false);
        $dirs = array(
            $this->getCacheDirectory(),
            substr($hash, 0, 2),
            substr($hash, 2, 2)
        );
        return join(DIRECTORY_SEPARATOR, $dirs);
    }
protected function getDirectory($id)
    {
        $hash = sha1($id, false);
        $dirs = array(
            $this->getCacheDirectory(),
            substr($hash, 0, 2),
            substr($hash, 2, 2)
        );
        return join(DIRECTORY_SEPARATOR, $dirs);
    }
protected function getDirectory ( $ id ) { $ hash = sha1 ( $ id , false ) ; $ dirs = array ( $ this -> getCacheDirectory ( ) , substr ( $ hash , 0 , 2 ) , substr ( $ hash , 2 , 2 ) ) ; return join ( DIRECTORY_SEPARATOR , $ dirs ) ; }
Fetches a directory to store the cache data

@param string $id

@return string
Fetches a directory to store the cache data