![]() If you’re using PHP-FPM : service php-fpm restartĪPC is a free, open, and robust framework for caching and optimizing PHP intermediate code. If you’re using Apache (mod_php) : service httpd restart yum install php-opcacheĪfter installation you need to restart Apache/php-fpm : OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. Rpm -Uvh remi-release-6.rpm To install Zend Opcache : ![]() Lets get Started : First install Remi repo : CentOS 8 dnf install CentOS 7 wget OPCache and object cache stores this code into memory on the first execution, to be reused afterwards, thus leading to performance boosts. In other words, a PHP script when it is executed, is compiled into opcode/object cache (memcache and redis), code that is understandable by the machine. OPCache and object cache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. ![]() In this tutorial we’ll implement and install various type of opcache and object cache in order to increase the performance of your websites and lower the loads for server.
0 Comments
Leave a Reply. |