From 7590184b5f5d6364c47509ca39ee26c6c6a58f69 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Wed, 1 Mar 2017 09:42:49 -0500 Subject: [PATCH] Attempt to fix apcu test error --- src/Driver/ApcuDriver.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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(); + } } /**