players cache wip

This commit is contained in:
salam committed 2026-08-31 08:23:01 +02:00
1 parent 713da3b266
commit 1949a06480
6 files changed
+70 -5

No files matched your search

+4
View File
@@ -2,6 +2,7 @@
namespace App\Actions;
use App\Models\SofaScorePlayerCache;
use App\Models\SofaScorePlayerPerSeason;
use App\Models\StatistikoDetail;
use App\Models\StatistikoPlayer;
@@ -10,6 +11,9 @@ class PlayerPerSeason
{
public static function run()
{
// when data changes clear player chche
SofaScorePlayerCache::truncate();
$res = StatistikoDetail::query()->select('ss_player_id', 'ss_team_id')->get();
foreach ($res as $val) {