mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进全局请求缓存的缓存标识
This commit is contained in:
@@ -1527,13 +1527,13 @@ class Request
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 自动缓存功能
|
// 自动缓存功能
|
||||||
$key = md5($this->host()) . '__URL__';
|
$key = '__URL__';
|
||||||
} elseif (strpos($key, '|')) {
|
} elseif (strpos($key, '|')) {
|
||||||
list($key, $fun) = explode('|', $key);
|
list($key, $fun) = explode('|', $key);
|
||||||
}
|
}
|
||||||
// 特殊规则替换
|
// 特殊规则替换
|
||||||
if (false !== strpos($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, ':')) {
|
if (false !== strpos($key, ':')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user