PHP7 now supports APCu / Opcache
parent
5162d00f82
commit
c092025337
|
@ -1,19 +1,19 @@
|
|||
---
|
||||
|
||||
- name: APT | Install php-apcu
|
||||
apt: pkg=php5-apcu state=latest
|
||||
when: php_version == 5
|
||||
- name: APT | Install APCu / Opcache
|
||||
apt: pkg={{ item }} state=latest
|
||||
with_items:
|
||||
- "{{ php_apt_prefix }}apcu"
|
||||
- "{{ php_apt_prefix }}opcache"
|
||||
|
||||
- name: TEMPLATE | Configure APCu
|
||||
template: >
|
||||
src=etc/__php__/mods-available/opcache.ini.j2
|
||||
dest="{{ php_mods_dir }}/opcache.ini"
|
||||
notify: restart php-fpm
|
||||
when: php_version == 5
|
||||
|
||||
- name: TEMPLATE | Configure APCu
|
||||
template: >
|
||||
src=etc/__php__/mods-available/apcu.ini.j2
|
||||
dest={{ php_mods_dir }}/apcu.ini
|
||||
notify: restart php-fpm
|
||||
when: php_version == 5
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
; {{ ansible_managed }}
|
||||
;
|
||||
|
||||
extension={{ php_apc_package }}.so
|
||||
extension=apcu.so
|
||||
|
||||
; apc.enabled can be set to 0 to disable APC
|
||||
apc.enable={{ php_apc_enable }}
|
||||
|
|
Loading…
Reference in New Issue