mod_php_install.sh: change some opchache values to match nextcloud's recommendations.
This commit is contained in:
parent
083811b4da
commit
a813cd3362
@ -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=$?
|
||||
|
Loading…
Reference in New Issue
Block a user