mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
34 lines
1.3 KiB
PHP
34 lines
1.3 KiB
PHP
<?php
|
|
|
|
use App\Jobs\RemoveInactiveAccounts;
|
|
use Illuminate\Foundation\Inspiring;
|
|
use Illuminate\Support\Facades\Schedule;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Console Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This file is where you may define all of your Closure based console
|
|
| commands. Each Closure is bound to a command instance allowing a
|
|
| simple approach to interacting with each command's IO methods.
|
|
|
|
|
*/
|
|
|
|
Artisan::command('inspire', function () {
|
|
$this->comment(Inspiring::quote());
|
|
})->purpose('Display an inspiring quote');
|
|
|
|
Schedule::command('disposable:update')->weekly();
|
|
Schedule::command('clean:directories')->hourly()->withoutOverlapping();
|
|
Schedule::command('nntmux:delete-unverified-users')->twiceDaily(1, 13);
|
|
Schedule::command('nntmux:update-expired-roles')->daily();
|
|
Schedule::command('nntmux:remove-bad')->hourly()->withoutOverlapping();
|
|
Schedule::command('telescope:prune')->daily();
|
|
Schedule::command('horizon:snapshot')->everyFiveMinutes()->withoutOverlapping();
|
|
Schedule::command('cloudflare:reload')->daily();
|
|
Schedule::command('cache:prune-stale-tags')->hourly();
|
|
if (config('nntmux.purge_inactive_users') === true) {
|
|
Schedule::job(new RemoveInactiveAccounts)->daily();
|
|
}
|