From 4bd9c4c9157a6080e9dcb18f681409bb2675f78f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 27 Sep 2016 18:25:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E7=BC=93=E5=AD=98=E6=A0=87?= =?UTF-8?q?=E8=AF=86=E6=94=AF=E6=8C=81=E4=BC=A0=E5=85=A5=5F=5FURL=5F=5F=20?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E5=BD=93=E5=89=8Durl=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E4=BD=9C=E4=B8=BA=E7=BC=93=E5=AD=98=E6=A0=87=E8=AF=86=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E8=AF=B7=E6=B1=82=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Request.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/think/Request.php b/library/think/Request.php index 1a8b6046..92a82cbf 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -1483,6 +1483,9 @@ class Request $key = str_replace(':' . $item, $val, $key); } } + } elseif ('__URL__' == $key) { + // 当前URL地址作为缓存标识 + $key = $this->url(); } if (Cache::has($key)) { // 读取缓存