From 83ba8d5840b76639623c4bac46dfd48c815c9464 Mon Sep 17 00:00:00 2001 From: Patrik Kernstock Date: Fri, 26 Sep 2025 04:01:17 +0200 Subject: [PATCH 1/2] Optimize opcache settings, enable JIT --- data/conf/phpfpm/php-conf.d/opcache-recommended.ini | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/data/conf/phpfpm/php-conf.d/opcache-recommended.ini b/data/conf/phpfpm/php-conf.d/opcache-recommended.ini index 3c51e11b76..1128d21741 100644 --- a/data/conf/phpfpm/php-conf.d/opcache-recommended.ini +++ b/data/conf/phpfpm/php-conf.d/opcache-recommended.ini @@ -1,7 +1,12 @@ +# opcache opcache.enable=1 opcache.enable_cli=1 opcache.interned_strings_buffer=16 opcache.max_accelerated_files=10000 opcache.memory_consumption=128 opcache.save_comments=1 -opcache.revalidate_freq=1 +opcache.revalidate_freq=120 +opcache.validate_timestamps=0 +# jit +opcache.jit = 1255 +opcache.jit_buffer_size = 8M From 2f8a1812816bcf1629365023c4415c14189b1e39 Mon Sep 17 00:00:00 2001 From: Patrik Kernstock Date: Fri, 26 Sep 2025 04:16:57 +0200 Subject: [PATCH 2/2] Fix comments, added some comments --- data/conf/phpfpm/php-conf.d/opcache-recommended.ini | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/data/conf/phpfpm/php-conf.d/opcache-recommended.ini b/data/conf/phpfpm/php-conf.d/opcache-recommended.ini index 1128d21741..5e8fe45566 100644 --- a/data/conf/phpfpm/php-conf.d/opcache-recommended.ini +++ b/data/conf/phpfpm/php-conf.d/opcache-recommended.ini @@ -1,4 +1,6 @@ -# opcache +; NOTE: Restart phpfpm on ANY manual changes to PHP files! + +; opcache opcache.enable=1 opcache.enable_cli=1 opcache.interned_strings_buffer=16 @@ -7,6 +9,7 @@ opcache.memory_consumption=128 opcache.save_comments=1 opcache.revalidate_freq=120 opcache.validate_timestamps=0 -# jit -opcache.jit = 1255 -opcache.jit_buffer_size = 8M + +; JIT +opcache.jit=1255 +opcache.jit_buffer_size=8M