From eb949debb7d5549969650b576867fab62c05a573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20R?= Date: Wed, 19 Apr 2017 11:28:40 +0200 Subject: [PATCH] Optimize opcache as documented on http://symfony.com/doc/current/performance.html --- php/conf.d/php.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/php/conf.d/php.ini b/php/conf.d/php.ini index 3c5b949..6583eee 100644 --- a/php/conf.d/php.ini +++ b/php/conf.d/php.ini @@ -8,7 +8,8 @@ max_execution_time = 90 date.timezone = UTC ; Some tweaks to improve performance -realpath_cache_size = 256k +realpath_cache_size=4096K +realpath_cache_ttl=600 ; Tweak opcache to your own needs, further reading: ; https://secure.php.net/manual/en/opcache.installation.php @@ -17,7 +18,7 @@ opcache.enable=1 opcache.enable_cli=1 opcache.memory_consumption=128 opcache.interned_strings_buffer=8 -opcache.max_accelerated_files=10000 +opcache.max_accelerated_files=20000 opcache.max_wasted_percentage=10 ; Might make sense for some use cases (however not for dev, and validate_timestamps=0 would be better for prod)