diff --git a/src/Driver/ApcuDriver.php b/src/Driver/ApcuDriver.php index 3d357ed..b4f5c33 100644 --- a/src/Driver/ApcuDriver.php +++ b/src/Driver/ApcuDriver.php @@ -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(); + } } /**