roles/php5-fpm: Tweak opcache settings
Reduce memory allocation from 128 -> 72M because after a few days of running it's only using 64 or so, so it's really just a waste of memory. Also, disable opcache for CLI. What the hell do you need opcaching in the CLI invocation for? It only persists for one process! Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
3edd31d347
commit
3a4e7455c7
@ -7,8 +7,8 @@ cgi_fix_pathinfo: 0
|
|||||||
# some sane defaults for PHP 5.5+ Opcache
|
# some sane defaults for PHP 5.5+ Opcache
|
||||||
# see: https://php.net/manual/en/opcache.installation.php
|
# see: https://php.net/manual/en/opcache.installation.php
|
||||||
opcache_enable: 1
|
opcache_enable: 1
|
||||||
opcache_enable_cli: 1
|
opcache_enable_cli: 0
|
||||||
opcache_memory_consumption: 128
|
opcache_memory_consumption: 72
|
||||||
opcache_interned_strings_buffer: 8
|
opcache_interned_strings_buffer: 8
|
||||||
opcache_max_accelerated_files: 4000
|
opcache_max_accelerated_files: 4000
|
||||||
opcache_use_cwd: 1
|
opcache_use_cwd: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user