• Resolved hanok

    (@hanok)


    Hi! I´m trying to setup the Zend Opcache but the option is disabled in the select field:

    https://prnt.sc/Ud8hhgoM6Rm2

    I have installed version 2.7.1 and WordPress 6.5.2

    This is a shared server hosting. The php.ini is like this:

    zend_extension=opcache.so;
    opcache.enable=1;
    opcache.memory_consumption=128;
    opcache.interned_strings_buffer=8;
    opcache.max_accelerated_files=4000;
    opcache.revalidate_freq=60;
    opcache.enable_cli=1;
    opcache.file_cache=/homepages/5/d251286445/htdocs/sanvalina/.opcache;
    opcache.file_cache_only=1;

    So the phpinfo() returns:

    https://prnt.sc/EdVD_Vl857Bj

    And if I check this code:

    <?php
    
    function is_opcache_enable() {
      $enabled = false;
      try {
        $enabled =  @ini_get('opcache.enable') && function_exists('opcache_reset');
      } catch (Throwable $e) {
        $enabled = false;
      }
      return var_dump($enabled);
    }
    
    is_opcache_enable();

    The result is: bool(true)

    What else shoud I check?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @hanok

    Thank you for reaching out and I am happy to help!

    Just to clarify, you have had W3 Total Cache installed and now you are trying to install/enable Zend Opcache on the server? In the W3 Total Cache, the Opcode dropdown menu is read-only, meaning if the W3 Total Cache detects Zend or APC this will be automatically enabled.

    Have you tried restarting the server and the php service and see if this helps!

    Thanks!

    Thread Starter hanok

    (@hanok)

    Thanks for answer so fast @vmarko

    The opcache__engine dropdown menu is not read-only, but the options inside are disabled.

    My doubt is why W3 Total Cache can´t detect Zend enabled when the phpinfo returns that is loaded and enabled (so not restart is required)? Which kind of verification checks the plugin?

    The problem about restart the service is that on a shared hosting server it´s imposible to do it by your own or when you want. I will open a support ticket to the hosting company asking for restart it… :/

    Regards!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @hanok

    Thank you for your feedback.

    When I say read-only, I mean that once the opdache is detected, it’s autmaticaly enabled in the plugin and cannot be disabled in the plugin

    Can you please let me know if you were able to restart the php?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Zend Opcache option disabled’ is closed to new replies.