From 1cdb0ba6934e3729ca12f3c8971b9fcb23b5ca21 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 9 Feb 2017 10:29:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=85=A8=E5=B1=80=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E8=AF=B7=E6=B1=82=E7=BC=93=E5=AD=98=E5=AF=B9=E5=AD=90?= =?UTF-8?q?=E5=9F=9F=E5=90=8D=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Request.php b/library/think/Request.php index d39153fd..9c8ae276 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -1523,13 +1523,13 @@ class Request } } // 自动缓存功能 - $key = '__URL__'; + $key = md5($this->host()) . '__URL__'; } elseif (strpos($key, '|')) { list($key, $fun) = explode('|', $key); } // 特殊规则替换 if (false !== strpos($key, '__')) { - $key = str_replace(['__MODULE__', '__CONTROLLER__', '__ACTION__', '__URL__'], [$this->module, $this->controller, $this->action, md5($this->url())], $key); + $key = str_replace(['__MODULE__', '__CONTROLLER__', '__ACTION__', '__URL__', ''], [$this->module, $this->controller, $this->action, md5($this->url())], $key); } if (false !== strpos($key, ':')) {