From 12333cca205637d0d048dd86aee4f3e00cb51017 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 25 Jul 2016 11:55:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BXcache=E9=A9=B1=E5=8A=A8?= =?UTF-8?q?=E7=9A=84clear=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/cache/driver/Xcache.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/think/cache/driver/Xcache.php b/library/think/cache/driver/Xcache.php index 8334404a..6c7b9c95 100644 --- a/library/think/cache/driver/Xcache.php +++ b/library/think/cache/driver/Xcache.php @@ -103,6 +103,10 @@ class Xcache */ public function clear() { - return; + if (function_exists('xcache_unset_by_prefix')) { + return xcache_unset_by_prefix($this->options['prefix']); + } else { + return false; + } } }