Skip to content

Commit

Permalink
Optimize opcache as documented on http://symfony.com/doc/current/perf…
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Apr 19, 2017
1 parent 66929a3 commit eb949de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions php/conf.d/php.ini
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit eb949de

Please sign in to comment.