// 使用子目录$name = substr($name, 0, 2) . DS . substr($name, 2);}if ($this->options['prefix']) {$name = $this->options['prefix'] . DS . $name;}$filename = $this->options['path'] . $name . '.php';$dir = dirname($filename);if (!is_dir($dir)) {mkdir($dir, 0755, true);}return $filename;}/*** 判断缓存是否存在* @access public* @param string $name 缓存变量名* @return bool
| name | 2c/6724bf5295013789927813e9c1c166 |
| filename | /www/wwwroot/cs.hirays.com/caches/cache/2c/6724bf5295013789927813e9c1c166.php |
| dir | /www/wwwroot/cs.hirays.com/caches/cache/2c |