Files
SkinbaseNova/.deploy/artwork-evolution-release/app/Jobs/RecalculateRisingNovaCardsJob.php
2026-04-18 17:02:56 +02:00

25 lines
695 B
PHP

<?php
declare(strict_types=1);
namespace App\Jobs;
use App\Services\NovaCards\NovaCardRisingService;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class RecalculateRisingNovaCardsJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle(NovaCardRisingService $risingService): void
{
$risingService->invalidateCache();
// Pre-warm the cache immediately so the next web request is fast.
$risingService->risingCards(36, cached: false);
}
}