Attempt to fix apcu test error
This commit is contained in:
parent
2bb9c1fb67
commit
7590184b5f
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user