PHP5.5 has built the ZendOPcache cache system, which is also available in 5.2-5.4. After testing, the acceleration performance in php5.4 is obvious, and the effect is better than that of 5.2 + ea. We recommend that you install
PHP5.5 has built the Zend OPcache cache system, which is also available in 5.2-5.4. After testing, the acceleration performance in php5.4 is obvious, and the effect is better than that of 5.2 + ea. We recommend that you install
Compilation steps:
The Code is as follows:
Git clone git: // github.com/zend-dev/ZendOptimizerPlus.git
Cd ZendOptimizerPlus
$ PHP_DIR/bin/phpize
./Configure \
-- With-php-config = $ PHP_DIR/bin/php-config
Make & make install
Configuration steps: in php. add zend_extension =/in ini /... full path... /opcache. so the following section is the configuration parameter officially recommended, which can improve the performance. It is recommended to use: opcache. memory_consumption = 128opcache. interned_strings_buffer = 8opcache. max_accelerated_files = 4000opcache. revalidate_freq = 60opcache. fast_shutdown = 1opcache. enable_cli = 1 another: In PHP5.5, you only need to add the -- enable-opcache parameter during compilation. We recommend that you use the Zend OPcache control panel:
Https://gist.github.com/ck-on/4959032