Add php_apc_stat variable.

This commit is contained in:
Jeff Geerling 2015-02-26 14:30:49 -06:00
parent 24af7936a4
commit d3e2ac586f
3 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,7 @@ When installing APC, depending on the system and whether running PHP as a webser
php_apc_cache_by_default: "1"
php_apc_shm_size: "96M"
php_apc_stat: "1"
Two APC ini directives that are often customized on a system. Set `php_apc_cache_by_default` to 0 to disable APC by default (so you could enable it on a host-by-host basis). Set the `php_apc_shm_size` so it will hold all your application code in memory with a little overhead (fragmentation or APC running out of memory will slow down PHP dramatically).

View File

@ -13,6 +13,7 @@ php_enable_apc: true
php_apc_enabled_in_ini: false
php_apc_cache_by_default: "1"
php_apc_shm_size: "96M"
php_apc_stat: "1"
# If this is set to false, none of the following options will have any effect.
# Any and all changes to /etc/php.ini will be your responsibility.

View File

@ -2,6 +2,7 @@
extension=apc.so
{% endif %}
apc.shm_size={{ php_apc_shm_size }}
apc.stat={{ php_apc_stat }}
apc.enable_cli=0
apc.rfc1867=1
apc.cache_by_default={{ php_apc_cache_by_default }}