From 043fa5d6aeeb74c43b26db2bcf48ae94f568ea87 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 27 Dec 2017 14:38:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=A8=A1=E6=9D=BF=E7=9A=84?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E7=BC=93=E5=AD=98=E5=91=BD=E5=90=8D=E8=A7=84?= =?UTF-8?q?=E5=88=99=20=E5=A2=9E=E5=8A=A0=E5=B8=83=E5=B1=80=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E7=9A=84=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Template.php b/library/think/Template.php index 91741571..713e1d25 100644 --- a/library/think/Template.php +++ b/library/think/Template.php @@ -185,7 +185,7 @@ class Template } $template = $this->parseTemplateFile($template); if ($template) { - $cacheFile = $this->config['cache_path'] . $this->config['cache_prefix'] . md5($template) . '.' . ltrim($this->config['cache_suffix'], '.'); + $cacheFile = $this->config['cache_path'] . $this->config['cache_prefix'] . md5($this->config['layout_name'] . $template) . '.' . ltrim($this->config['cache_suffix'], '.'); if (!$this->checkCache($cacheFile)) { // 缓存无效 重新模板编译 $content = file_get_contents($template);