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
1 changed files with 9 additions and 1 deletions

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();
}
}
/**