• Resolved JibsouX

    (@jibsoux)


    Hello !
    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.

    here is a screenshot of the opcache module (phpinfo) :
    https://www.zupimages.net/up/22/19/eck7.png

    is it normal or it’s a bug, or does i have some server config to do ?
    Thanks in advance !

    • This topic was modified 2 years, 6 months ago by JibsouX.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter JibsouX

    (@jibsoux)

    I have the impression that the plugin works anyway because the administration is much faster as for the site.

    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.

    Plugin Author Nawawi Jamili

    (@nawawijamili)

    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.

    Thread Starter JibsouX

    (@jibsoux)

    Thank you very much for all these explanations!
    I will see with the customer what can be done.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘OVH Opcache bug ?’ is closed to new replies.