This commit is contained in:
Christian Winther 2024-02-10 00:30:06 +00:00
parent 5bd93b0f5e
commit d9a9507cc8

View file

@ -33,6 +33,10 @@ class Kernel extends ConsoleKernel
$schedule->command('gc:passwordreset')->dailyAt('09:41')->onOneServer(); $schedule->command('gc:passwordreset')->dailyAt('09:41')->onOneServer();
$schedule->command('gc:sessions')->twiceDaily(13, 23)->onOneServer(); $schedule->command('gc:sessions')->twiceDaily(13, 23)->onOneServer();
if (in_array(config_cache('pixelfed.cloud_storage'), ['1', true, 'true']) && config('media.delete_local_after_cloud')) {
$schedule->command('media:s3gc')->hourlyAt(15);
}
if (config('import.instagram.enabled')) { if (config('import.instagram.enabled')) {
$schedule->command('app:transform-imports')->everyTenMinutes()->onOneServer(); $schedule->command('app:transform-imports')->everyTenMinutes()->onOneServer();
$schedule->command('app:import-upload-garbage-collection')->hourlyAt(51)->onOneServer(); $schedule->command('app:import-upload-garbage-collection')->hourlyAt(51)->onOneServer();
@ -56,11 +60,7 @@ class Kernel extends ConsoleKernel
*/ */
protected function commands() protected function commands()
{ {
<<<<<<< HEAD
$this->load(__DIR__ . '/Commands'); $this->load(__DIR__ . '/Commands');
=======
$this->load(__DIR__.'/Commands');
>>>>>>> d374d73ba74860d6eb90752d596cf2e22f189860
require base_path('routes/console.php'); require base_path('routes/console.php');
} }