Browse Source

php opcache

master
parent
commit
acf4ad266a
3 changed files with 17 additions and 0 deletions
  1. +2
    -0
      tasks/main.yml
  2. +8
    -0
      tasks/php-opcache.yml
  3. +7
    -0
      templates/php-opcache.conf.j2

+ 2
- 0
tasks/main.yml View File

@@ -2,6 +2,8 @@


- include: setup_Debian.yml - include: setup_Debian.yml


- include: php-opcache.yml

- include: reset.yml - include: reset.yml
when: nextcloud_state == "reinstalled" when: nextcloud_state == "reinstalled"




+ 8
- 0
tasks/php-opcache.yml View File

@@ -0,0 +1,8 @@

---

- name: enable php opcache
template:
src: php-opcache.conf.j2
dest: /etc/php/7.0/apache2/conf.d/opcache.ini
notify: restart apache2

+ 7
- 0
templates/php-opcache.conf.j2 View File

@@ -0,0 +1,7 @@
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1

Loading…
Cancel
Save