From 9230cd4356fbb30d0d6ee98a28ee84ab1e5f78cb Mon Sep 17 00:00:00 2001 From: Thomas Ebert Date: Fri, 7 Apr 2023 21:42:04 +0200 Subject: [PATCH] Fix opcache setting for development --- tests/docker-compose.yml | 1 + tests/opcache-recommended.ini | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/opcache-recommended.ini diff --git a/tests/docker-compose.yml b/tests/docker-compose.yml index 725a001..8d5371d 100644 --- a/tests/docker-compose.yml +++ b/tests/docker-compose.yml @@ -59,6 +59,7 @@ services: volumes: - nextcloud:/var/www/html - ../:/var/www/html/custom_apps/timemanager + - ./opcache-recommended.ini:/usr/local/etc/php/conf.d/opcache-recommended.ini environment: - REDIS_HOST=${REDIS_HOST} - REDIS_HOST_PASSWORD=${REDIS_HOST_PASSWORD} diff --git a/tests/opcache-recommended.ini b/tests/opcache-recommended.ini new file mode 100644 index 0000000..4d62ed4 --- /dev/null +++ b/tests/opcache-recommended.ini @@ -0,0 +1,8 @@ +opcache.enable=1 +opcache.interned_strings_buffer=32 +opcache.max_accelerated_files=10000 +opcache.memory_consumption=128 +opcache.save_comments=1 +opcache.revalidate_freq=1 +opcache.jit=1255 +opcache.jit_buffer_size=128M \ No newline at end of file