Please note that it's necessary to do
$apcu_ok = function_exists( 'apcu_enabled' ) ? apcu_enabled() : false;
to cope with the situation where the APCu extension is not available.
(PECL apcu >= 4.0.3)
apcu_enabled — Whether APCu is usable in the current environment
This function has no parameters.
Please note that it's necessary to do
$apcu_ok = function_exists( 'apcu_enabled' ) ? apcu_enabled() : false;
to cope with the situation where the APCu extension is not available.