• Resolved tdechangy

    (@tdechangy)


    My host offers this code sample to be inserted in php.ini to enable OPcache, so I asked them to do it to ensure that it is done the best way. I see that the cache file is loading a lot of content which seem a good sign of installation. However the option is not available in W3C under general settings.

    Here is the code added in php.ini

    zend_extension=opcache.so;
    opcache.enable=1;
    opcache.memory_consumption=32;
    opcache.interned_strings_buffer=8;
    opcache.max_accelerated_files=3000;
    opcache.revalidate_freq=180;
    opcache.fast_shutdown=0;
    opcache.enable_cli=0;
    opcache.revalidate_path=0;
    opcache.validate_timestamps=1;
    opcache.max_file_size=0;
    opcache.file_cache=/ xxxxxxxxxxxxxxx/.opcache;
    opcache.file_cache_only=1;

    you can have an overlook of the setup @ https://imperativewealth.com/phpinfo.php displaying this among other related information :

    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v3.3.14, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.14, Copyright (c) 1999-2018, by Zend Technologies

    Can you say me more about how to understand and solve this situation pls ?

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

    (@vmarko)

    Hello @tdechangy

    Thank you for your inquiry and I am happy to assist you with this.
    Have you tried to restarting your server and see if you can select Zend under the Performance>General settings>Opcode Cache?
    Thank you!

    Thread Starter tdechangy

    (@tdechangy)

    Thanks for the suggestion. I think there are chances that you are right, but my host don’t agree to restart its shared server, even for “maintenance” purpose as I suggested them.

    How would you interpret this and the impact on the caching capability.
    NB : for now I see the cache folder effectively loading content @ site root, but since Zend OPcache is not available in W3TC options I wonder about its impact. Should I even hold such a cache install or rather remove it … waiting until a hazardous server relaunch .. (worst scenario) ?

    Regards.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tdechangy

    Ah, shared server. In some cases, the restart of a server is needed as you can see in this article for example. Like in the cases when installing PHP modules for E.G. Memcached or Redis (PHP modules needs to be installed in order for W3 Total Cache to recognize them).
    This is always an issue with shared servers so potentially you should consider the dedicated plan.
    Thank you!

    Thread Starter tdechangy

    (@tdechangy)

    Thanks for your quick answer, can you also develop what I asked about my potential gain here :

    How would this impact on the caching capability : for now I see the cache folder effectively loading content @ site root, but since Zend OPcache is not available in W3TC options I wonder about its impact. Should I even hold such a cache install or rather remove it ?

    Since we are often locked in shared servers, this needs to be addressed accordingly.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tdechangy

    The Zend OPcache provides faster PHP execution through opcode caching and
    optimization. It improves PHP performance by storing precompiled script
    bytecode in the shared memory. This eliminates the stages of reading code from
    the disk and compiling it on future access. Also, it applies a few
    bytecode optimization patterns that make code execution faster.

    If you have hosted your website in a shared server that is receiving a small number of requests and runs at a good speed, there is no need for it. However, if you are on a server that has too much traffic or you are running a website that will receive high traffic then you should consider Zend Opcache and of course upgrading the hosting plan. The built-in caching engine in PHP will meet your performance needs up to an extent. You can use the OPcache if you are expecting more traffic with your websites.
    Thank you!

    Thread Starter tdechangy

    (@tdechangy)

    Yes, I’m quite aware of the reasons to use OPcache, and it’s probably overkill for this site.
    However this stil does not answer the question really. Sorry to ask it once more for actual or future usecases.

    for now I see the cache folder effectively loading content @ site root, but since Zend OPcache is not available in W3TC options I wonder about its impact. Should I even hold such a cache install or rather remove it ?

    Regards.

    • This reply was modified 4 years, 8 months ago by tdechangy.
    Thread Starter tdechangy

    (@tdechangy)

    To make the last question even more clear :

    Knowing that OPcache is already doing some job as explained in the initial comment :

    I see that the cache file is loading a lot of content which seem a good sign of installation. However the option is not available in W3C under general settings.

    What should be the difference in caching capability if I was able to activate it in the settings ?

    Regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Zend OPcache not showing in global settings’ is closed to new replies.