From 49a9b2735fc4505f1d5e0dbb4b80eb0c60426818 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 17 Aug 2016 16:54:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3File=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E9=A9=B1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/cache/driver/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/cache/driver/File.php b/library/think/cache/driver/File.php index c45f1f87..3c3f9183 100644 --- a/library/think/cache/driver/File.php +++ b/library/think/cache/driver/File.php @@ -69,7 +69,7 @@ class File extends Driver $name = md5($name); if ($this->options['cache_subdir']) { // 使用子目录 - $name = substr($md5, 0, 2) . DS . substr($md5, 2); + $name = substr($name, 0, 2) . DS . substr($name, 2); } if ($this->options['prefix']) { $name = $this->options['prefix'] . DS . $name;