From 98cb4e9494da039fd4e293672bd74a0f0962b22b Mon Sep 17 00:00:00 2001 From: szaimen Date: Wed, 9 Feb 2022 18:27:03 +0100 Subject: [PATCH] update opcache settings Signed-off-by: szaimen --- Containers/nextcloud/Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Containers/nextcloud/Dockerfile b/Containers/nextcloud/Dockerfile index 8bb82c76..8695d513 100644 --- a/Containers/nextcloud/Dockerfile +++ b/Containers/nextcloud/Dockerfile @@ -86,12 +86,9 @@ RUN set -ex; \ # set recommended PHP.ini settings # see https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/server_tuning.html#enable-php-opcache RUN { \ - echo 'opcache.enable=1'; \ - echo 'opcache.interned_strings_buffer=8'; \ - echo 'opcache.max_accelerated_files=10000'; \ - echo 'opcache.memory_consumption=128'; \ + echo 'opcache.interned_strings_buffer=16'; \ echo 'opcache.save_comments=1'; \ - echo 'opcache.revalidate_freq=1'; \ + echo 'opcache.revalidate_freq=60'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \