Skip to content

Commit

Permalink
Raise buffer for OPCache for old installs as well
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Feb 4, 2022
1 parent 2e5d32d commit 8740349
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,14 @@ then
nextcloud_occ config:system:set default_phone_region --value="$KEYBOARD_LAYOUT"
fi
fi
if [ "${CURRENTVERSION%%.*}" -ge "23" ]
then
# Raise OPCache
if grep -q "opcache.interned_strings_buffer=8" "$PHP_INI"
then
sed -i "s|opcache.interned_strings_buffer.*|opcache.interned_strings_buffer=16|g" "$PHP_INI"
fi
fi
else
msg_box "Something went wrong with backing up your old Nextcloud instance
Please check in $BACKUP if the folders exist."
Expand Down

0 comments on commit 8740349

Please sign in to comment.