How to: Install Zend OpCache for php and WordPress

You may also like...

2 Responses

  1. Akshat Verma says:

    How to configure wordpress to use ZendOPcache?

    • Juan Carlos says:

      Well, if your php configuration has it then there is nothing else you need to do on WordPress. You can try something like https://github.com/rlerdorf/opcache-status to see the status of your opcache. If you haven’t configured it on your php installation you can do so this way:

      PHP’s Zend Opcache Config

      In your php.ini or depending on your PHP version

      /etc/php5/fpm/conf.d/05-opcache.ini

      or /etc/php/7.0/mods-available/opcache.ini

      zend_extension=opcache.so
      opcache.memory_consumption=512
      opcache.max_accelerated_files=50000

      ;following can be commented for production server
      opcache.revalidate_freq=0
      opcache.consistency_checks=1

      Hope this helps!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: