diff --git a/library/think/Request.php b/library/think/Request.php index d4f96a75..efc19c35 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -1527,13 +1527,13 @@ class Request } } // 自动缓存功能 - $key = md5($this->host()) . '__URL__'; + $key = '__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(true))], $key); } if (false !== strpos($key, ':')) {