PHP7 now supports APCu / Opcache

freebsd
Emilien Mantel 2016-02-27 12:51:30 +01:00
parent 5162d00f82
commit c092025337
2 changed files with 6 additions and 6 deletions

View File

@ -1,19 +1,19 @@
--- ---
- name: APT | Install php-apcu - name: APT | Install APCu / Opcache
apt: pkg=php5-apcu state=latest apt: pkg={{ item }} state=latest
when: php_version == 5 with_items:
- "{{ php_apt_prefix }}apcu"
- "{{ php_apt_prefix }}opcache"
- name: TEMPLATE | Configure APCu - name: TEMPLATE | Configure APCu
template: > template: >
src=etc/__php__/mods-available/opcache.ini.j2 src=etc/__php__/mods-available/opcache.ini.j2
dest="{{ php_mods_dir }}/opcache.ini" dest="{{ php_mods_dir }}/opcache.ini"
notify: restart php-fpm notify: restart php-fpm
when: php_version == 5
- name: TEMPLATE | Configure APCu - name: TEMPLATE | Configure APCu
template: > template: >
src=etc/__php__/mods-available/apcu.ini.j2 src=etc/__php__/mods-available/apcu.ini.j2
dest={{ php_mods_dir }}/apcu.ini dest={{ php_mods_dir }}/apcu.ini
notify: restart php-fpm notify: restart php-fpm
when: php_version == 5

View File

@ -2,7 +2,7 @@
; {{ ansible_managed }} ; {{ ansible_managed }}
; ;
extension={{ php_apc_package }}.so extension=apcu.so
; apc.enabled can be set to 0 to disable APC ; apc.enabled can be set to 0 to disable APC
apc.enable={{ php_apc_enable }} apc.enable={{ php_apc_enable }}