Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/app/Console/Kernel.php
Назад
<?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use Illuminate\Support\Facades\Cache; class Kernel extends ConsoleKernel { /** * Define the application's command schedule. */ protected function schedule(Schedule $schedule): void { // php artisan schedule:run >> /dev/null 2>&1 // run queue jobs $schedule->command('queue:work --tries=3 --stop-when-empty') ->everyMinute() ->withoutOverlapping(); $schedule->call(function () { Cache::forget('corn_working'); Cache::remember('corn_working', now()->addHours(24), function () { return 'working'; }); })->daily()->name('cron_test')->withoutOverlapping(); } /** * Register the commands for the application. */ protected function commands(): void { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.1 |
proxy
|
phpinfo
|
Настройка