private function getCacheFileName($name)
    {
        $name = hash($this->options['hash_type'], $name);

        if ($this->options['cache_subdir']) {
            $name = substr($name, 0, 2).DIRECTORY_SEPARATOR.substr($name, 2);
        }

        if ($this->options['prefix']) {
            $name = $this->options['prefix'].DIRECTORY_SEPARATOR.$name;
        }

        $filename = $this->options['path'].$name.'.php';
        $dir      = dirname($filename);
        if (!is_dir($dir)) {
            mkdir($dir, 0755, true);
        }

        return $filename;
    }
private function getCacheFileName($name)
    {
        $name = hash($this->options['hash_type'], $name);

        if ($this->options['cache_subdir']) {
            $name = substr($name, 0, 2).DIRECTORY_SEPARATOR.substr($name, 2);
        }

        if ($this->options['prefix']) {
            $name = $this->options['prefix'].DIRECTORY_SEPARATOR.$name;
        }

        $filename = $this->options['path'].$name.'.php';
        $dir      = dirname($filename);
        if (!is_dir($dir)) {
            mkdir($dir, 0755, true);
        }

        return $filename;
    }
private function getCacheFileName ( $ name ) { $ name = hash ( $ this -> options [ 'hash_type' ] , $ name ) ; if ( $ this -> options [ 'cache_subdir' ] ) { $ name = substr ( $ name , 0 , 2 ) . DIRECTORY_SEPARATOR . substr ( $ name , 2 ) ; } if ( $ this -> options [ 'prefix' ] ) { $ name = $ this -> options [ 'prefix' ] . DIRECTORY_SEPARATOR . $ name ; } $ filename = $ this -> options [ 'path' ] . $ name . '.php' ; $ dir = dirname ( $ filename ) ; if ( ! is_dir ( $ dir ) ) { mkdir ( $ dir , 0755 , true ) ; } return $ filename ; }
Get the full path of the cache file.
@param $name
@author : evalor <master@evalor.cn>
@return string
Get the full path of the cache file .