启用域名路由和请求缓存,不同域名的请求缓存一样!

浏览:1123 发布日期:2017/02/07
5.0.0 - 严重 - 已处理
启用域名路由:www.tp5.com
m.tp5.com
有两个页面,分别对应PC端和移动端:http://www.tp5.com/article/1.html
http://m.tp5.com/article/1.html
同时打开请求缓存'request_cache'          => true,
'request_cache_expire'   => 3600,//10
它们生成的请求缓存是一样的。$key = str_replace(['__MODULE__', '__CONTROLLER__', '__ACTION__', '__URL__'], [$this->module, $this->controller, $this->action, md5($this->url())], $key);它们$this->url()都是一样的:/article/1.html
md5($this->url())
导致$key一样。
评论(
后面还有条评论,点击查看>>