changeset 436:6293839019d0

Adjust PHP settings for NextCloud The CLI wants APCu enabled Other settings were recommended to get different values
author IBBoard <dev@ibboard.co.uk>
date Wed, 19 Apr 2023 18:45:23 +0100
parents 377fbb08568a
children b8d6ada284dd
files modules/website/manifests/php.pp
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/website/manifests/php.pp	Wed Apr 19 18:44:13 2023 +0100
+++ b/modules/website/manifests/php.pp	Wed Apr 19 18:45:23 2023 +0100
@@ -47,6 +47,9 @@
       'PHP/post_max_size' => "8M",
       'Data/date.timezone' => 'UTC',
     },
+    cli_settings => {
+      'apc.enable_cli' => 1 ,
+    },
     extensions => {
       ctype => {
         ini_prefix => '20-',
@@ -66,11 +69,11 @@
         settings => {
           'opcache.enable' => 1,
           'opcache.enable_cli' => 1,
-          'opcache.interned_strings_buffer' => 8,
+          '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' => 60,
         }
       },
       xml => {