Hi,
I come to you this time because Opcache dont work on an ovh server or in the phpinfo I see Opcache enabled, but the plugin says Zend OPcache Not Available.
Docket Cache detect if OPcache is available by doing some checking
1. opcache.enable or opcache.file_cache_only directive is enable.
2. Zend OPcache extension loaded.
3. One of this OPcache native functions exists:
opcache_get_status
opcache_reset
opcache_compile_file
opcache_invalidate
opcache_is_script_cached
opcache_get_configuration
If not meet all the above requirements it will say “Zend OPcache Not Available”.
is it normal or it’s a bug, or does i have some server config to do ?
If possible, remove OPcache functions as said in number 3 from PHP “disable_functions” directive.
Also when I do “view opcache configuration” in the plugin tab I get the following message: No data is available. The opcache_get_configuration function disabled in PHP configuration.
Seems like opcache_get_configuration has been disabled in PHP “disable_functions” directive.
Some shared hosting providers will disable OPcache functions for privacy and performance purposes. Because if it has more than 1 website use the same PHP/php-fpm instance that shares the same OPcache usage. This will make all website can see their file each other by using the “opcache_get_status” functions. And if one of a website can use “opcache_reset”, this action will reset all the website’s OPcache and leads to performance issues.
If you’re using VPS/server and have full control, this is not an issue.
Thanks.