mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 12:10:41 -05:00
Refringe
16e3a67efd
- 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.
15 lines
559 B
PHP
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();
|