From a813cd33620ef35476534d04c9f86235c0657f30 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 30 Jun 2022 00:10:23 +0200 Subject: [PATCH] mod_php_install.sh: change some opchache values to match nextcloud's recommendations. --- mod_php_install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mod_php_install.sh b/mod_php_install.sh index 7e3b332..7c3da6b 100755 --- a/mod_php_install.sh +++ b/mod_php_install.sh @@ -6096,7 +6096,7 @@ if [[ -n "$zend_extension_opcache" ]];then ## - echononl "\tphp.ini: opcache.interned_strings_buffer = 16 .." opcache_key="opcache.interned_strings_buffer" - opcache_val=8 + opcache_val=16 if grep -e "^\s*${opcache_key}\s*=" $PHP_INI_FILE > /dev/null 2>&1 ; then perl -i -n -p -e "s#^(\s*${opcache_key}\s*=.*)#;\1\n*${opcache_key} = ${opcache_val}#" $PHP_INI_FILE _retval=$? @@ -6128,11 +6128,11 @@ if [[ -n "$zend_extension_opcache" ]];then echo_failed fi - ## - set opcache.validate_timestamps=1 + ## - set opcache.validate_timestamps=0 ## - echononl "\tphp.ini: opcache.validate_timestamps = 1 .." opcache_key="opcache.validate_timestamps" - opcache_val=1 + opcache_val=0 if grep -e "^\s*${opcache_key}\s*=" $PHP_INI_FILE > /dev/null 2>&1 ; then perl -i -n -p -e "s#^(\s*${opcache_key}\s*=.*)#;\1\n*${opcache_key} = ${opcache_val}#" $PHP_INI_FILE _retval=$? @@ -6182,11 +6182,11 @@ if [[ -n "$zend_extension_opcache" ]];then echo_failed fi - ## - set opcache.revalidate_freq=1 + ## - set opcache.revalidate_freq=60 ## - echononl "\tphp.ini: opcache.revalidate_freq = 1 .." opcache_key="opcache.revalidate_freq" - opcache_val=1 + opcache_val=60 if grep -e "^\s*${opcache_key}\s*=" $PHP_INI_FILE > /dev/null 2>&1 ; then perl -i -n -p -e "s#^(\s*${opcache_key}\s*=.*)#;\1\n*${opcache_key} = ${opcache_val}#" $PHP_INI_FILE _retval=$?