Commit 7cd16e39 authored by Julien Gomes Dias's avatar Julien Gomes Dias
Browse files

[fix] OpCache modifications

parent ce1bebc3
......@@ -19,7 +19,7 @@
notify: reload php-fpm php7_fpm
tags:
- confphpfpm
- name: "opcache.revalidate_freq to {{ opcache_revalidate_freq }} for PHP{{ php_version }}"
lineinfile:
line: "opcache.revalidate_freq = {{ opcache_revalidate_freq }}"
......@@ -91,7 +91,7 @@
- confphpfpm
- name: "uplaod_max_filesize limit from 2M to {{ php_upload_max_filesize }} for PHP{{ php_version }}"
- name: "upload_max_filesize limit from 2M to {{ php_upload_max_filesize }} for PHP{{ php_version }}"
lineinfile:
line: "upload_max_filesize = {{ php_upload_max_filesize }}"
regexp: "^upload_max_filesize"
......
......@@ -130,30 +130,6 @@
state: present
notify: reload php-fpm php7_fpm
- name: "OP Cache for PHP{{ php_version }}"
lineinfile:
line: "opcache.interned_strings_buffer=8"
insertafter: ";opcache.interned_strings_buffer"
path: "{{ php_ini_file }}"
state: present
notify: reload php-fpm php7_fpm
- name: "OP Cache for PHP{{ php_version }}"
lineinfile:
line: "opcache.max_accelerated_files=10000"
insertafter: ";opcache.max_accelerated_files"
path: "{{ php_ini_file }}"
state: present
notify: reload php-fpm php7_fpm
- name: "OP Cache for PHP{{ php_version }}"
lineinfile:
line: "opcache.revalidate_freq=1"
insertafter: ";opcache.revalidate_freq"
path: "{{ php_ini_file }}"
state: present
notify: reload php-fpm php7_fpm
### NGINX
- name: "env[HOSTNAME] for PHP{{ php_version }}"
......@@ -200,4 +176,4 @@
path: "{{ php_www_conf_file }}"
state: present
when: rev_proxy == "nginx"
notify: reload php-fpm php7_fpm
\ No newline at end of file
notify: reload php-fpm php7_fpm
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment