改进Xcache驱动的clear方法

This commit is contained in:
thinkphp
2016-07-25 11:55:49 +08:00
parent 2326a9b693
commit 12333cca20

View File

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