Explorar o código

Update console kernel

Daniel Supernault %!s(int64=2) %!d(string=hai) anos
pai
achega
fe51054122
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/Console/Kernel.php

+ 4 - 0
app/Console/Kernel.php

@@ -32,6 +32,10 @@ class Kernel extends ConsoleKernel
         $schedule->command('gc:failedjobs')->dailyAt(3);
         $schedule->command('gc:passwordreset')->dailyAt('09:41');
         $schedule->command('gc:sessions')->twiceDaily(13, 23);
+
+        if(config('pixelfed.cloud_storage') && config('media.delete_local_after_cloud')) {
+            $schedule->command('media:s3gc')->hourlyAt(15);
+        }
     }
 
     /**