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; + } } }