缓存前缀变成了目录?

浏览:367 发布日期:2016/08/25 分类:ThinkPHP5专区


在think\cache\driver\File缓存类文件驱动中,是这样定义缓存文件名的:if ($this->options['prefix']) {
    $name = $this->options['prefix'] . DS . $name;
}
而常量DS是‘ / ’,那前缀岂不成了子目录?那还要前面的cache_subdir干嘛?if ($this->options['cache_subdir']) {
            // 使用子目录
            $name = substr($name, 0, 2) . DS . substr($name, 2);
        }
我记得RC4刚开始的几个版本还是正常的。
求解……
最佳答案
评论( 相关
后面还有条评论,点击查看>>