fix: improve opcache reset command in Laravel cache script for better compatibility
This commit is contained in:
@@ -24,7 +24,7 @@ COMMANDS=(
|
|||||||
"php artisan package:discover --ansi"
|
"php artisan package:discover --ansi"
|
||||||
"php artisan optimize"
|
"php artisan optimize"
|
||||||
"pkill -f 'artisan queue:work' >/dev/null 2>&1 || true; nohup php artisan queue:work --daemon --quiet >> /dev/null 2>&1 &"
|
"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() {
|
draw_bar() {
|
||||||
|
|||||||
Reference in New Issue
Block a user