Merge pull request #56 from juwai/master

Add option for opcache blacklist file
This commit is contained in:
Jeff Geerling 2016-02-16 19:28:48 -08:00
commit 41a6282e9e
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,7 @@ php_opcache_max_wasted_percentage: "5"
php_opcache_validate_timestamps: "1" php_opcache_validate_timestamps: "1"
php_opcache_revalidate_freq: "2" php_opcache_revalidate_freq: "2"
php_opcache_max_file_size: "0" php_opcache_max_file_size: "0"
php_opcache_blacklist_filename: ""
# APC settings (useful for PHP <5.5). # APC settings (useful for PHP <5.5).
php_enable_apc: true php_enable_apc: true

View File

@ -11,3 +11,6 @@ opcache.max_wasted_percentage={{ php_opcache_max_wasted_percentage }}
opcache.validate_timestamps={{ php_opcache_validate_timestamps }} opcache.validate_timestamps={{ php_opcache_validate_timestamps }}
opcache.revalidate_freq={{ php_opcache_revalidate_freq }} opcache.revalidate_freq={{ php_opcache_revalidate_freq }}
opcache.max_file_size={{ php_opcache_max_file_size }} opcache.max_file_size={{ php_opcache_max_file_size }}
{% if php_opcache_blacklist_filename != '' %}
opcache.blacklist_filename={{ php_opcache_blacklist_filename }}
{% endif %}