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

@ -134,10 +134,18 @@ class ApcuDriver extends AbstractDriver {
* @return boolean * @return boolean
*/ */
public function flush(): bool public function flush(): bool
{
if (function_exists('apcu_clear_cache'))
{ {
return \apcu_clear_cache(); return \apcu_clear_cache();
} }
if (function_exists('apc_clear_cache'))
{
return \apc_clear_cache();
}
}
/** /**
* Set the specified key to expire at the given time * Set the specified key to expire at the given time
* *