You are viewing an old version of this page. Return to the latest version.
Version of 09:29, 17 September 2019 by MLR
No categories assigned
Performance Optimization: PHP
-
- Last edited 5 years ago by MLR
-
opcache
Enable the Zend extension opcache in PHP. In the php.ini, we recommend the following configuration:
opcache.enable=1 opcache.memory_consumption=512 opcache.max_accelerated_files=100000 opcache.validate_timestamps=1 opcache.revalidate_freq=2 opcache.optimization_level=0x7FFF9FFF
You can find more information in the official PHP documentationfor configuration.php.
zlib
Activate the extension zlib. In the php.ini we recommend the following configuration:
zlib.output_compression = On zlib.output_compression_level = 9
You can find more information in the official PHP documentation for zlib.