Update opcache.sh

This commit is contained in:
dami 2026-03-21 23:47:55 +08:00
parent f7fa4a6dc5
commit 9a60ded31c
1 changed files with 6 additions and 1 deletions

View File

@ -36,7 +36,12 @@ if [ "$actionType" == 'install' ];then
ext_file=${ext_dir}/${find_opcache}
fi
echo $ext_file
echo "zend_extension=${LIBNAME}.so" >> $ext_file
if [ "$version" == "8.5" ];then
echo "no zend_extension"
else
echo "zend_extension=${LIBNAME}.so" >> $ext_file
fi
echo "opcache.enable=1" >> $ext_file
echo "opcache.memory_consumption=128" >> $ext_file
echo "opcache.interned_strings_buffer=8" >> $ext_file