fix: improve opcache reset command in Laravel cache script for better compatibility

This commit is contained in:
2025-12-03 21:22:15 -05:00
parent d996e424a1
commit 2820329a96

View File

@@ -24,7 +24,7 @@ COMMANDS=(
"php artisan package:discover --ansi"
"php artisan optimize"
"pkill -f 'artisan queue:work' >/dev/null 2>&1 || true; nohup php artisan queue:work --daemon --quiet >> /dev/null 2>&1 &"
"php -r 'if(function_exists(\"opcache_reset\")) opcache_reset();' 2>/dev/null || true"
"(command -v php >/dev/null 2>&1 && php -r 'if(function_exists(\"opcache_reset\")) opcache_reset();') || true"
)
draw_bar() {