forge/routes/console.php
Refringe 16e3a67efd
Query Optimization
- Download counts were taking too long to calculate dynamically, so we're keeping track of a total count with observers and queued job.
- Optimized the SQL used to order a mod listing by mod version update times.
2024-08-31 01:19:22 -04:00

15 lines
559 B
PHP

<?php
use App\Console\Commands\ImportHubCommand;
use App\Console\Commands\ResolveVersionsCommand;
use App\Console\Commands\SptVersionModCountsCommand;
use App\Console\Commands\UpdateModDownloadsCommand;
use Illuminate\Support\Facades\Schedule;
Schedule::command(ImportHubCommand::class)->hourly();
Schedule::command(ResolveVersionsCommand::class)->hourlyAt(30);
Schedule::command(SptVersionModCountsCommand::class)->hourlyAt(40);
Schedule::command(UpdateModDownloadsCommand::class)->hourlyAt(45);
Schedule::command('horizon:snapshot')->everyFiveMinutes();