Attempt to fix apcu test error

This commit is contained in:
Timothy Warren 2017-03-01 09:42:49 -05:00
parent 2bb9c1fb67
commit 7590184b5f

View File

@ -135,7 +135,15 @@ class ApcuDriver extends AbstractDriver {
*/
public function flush(): bool
{
return \apcu_clear_cache();
if (function_exists('apcu_clear_cache'))
{
return \apcu_clear_cache();
}
if (function_exists('apc_clear_cache'))
{
return \apc_clear_cache();
}
}
/**