mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进Xcache驱动的clear方法
This commit is contained in:
6
library/think/cache/driver/Xcache.php
vendored
6
library/think/cache/driver/Xcache.php
vendored
@@ -103,6 +103,10 @@ class Xcache
|
|||||||
*/
|
*/
|
||||||
public function clear()
|
public function clear()
|
||||||
{
|
{
|
||||||
return;
|
if (function_exists('xcache_unset_by_prefix')) {
|
||||||
|
return xcache_unset_by_prefix($this->options['prefix']);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user