library.sh: Warn that clearing opcache can take some time

Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
thecalcaholic 2022-09-28 00:28:04 +02:00
parent 21d9894e63
commit a475184803
No known key found for this signature in database
GPG Key ID: 3510056072886A8F

View File

@ -556,6 +556,7 @@ function clear_opcache() {
local data_dir="$(get_nc_config_value datadirectory)"
! [[ -d "${data_dir:-/var/www/data}/.opcache" ]] || {
echo "Clearing opcache..."
echo "This can take some time. Please don't interrupt the process/close your browser tab."
rm -rf "${data_dir:-/var/www/data}/.opcache"/*
echo "Done."
}