diff --git a/README.md b/README.md index bc9e7bc..9e890e8 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/defaults/main.yml b/defaults/main.yml index 87b1156..9e54203 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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. diff --git a/templates/apc.ini.j2 b/templates/apc.ini.j2 index effc0bd..b6fddeb 100644 --- a/templates/apc.ini.j2 +++ b/templates/apc.ini.j2 @@ -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 }}