players cache wip
This commit is contained in:
1 parent
713da3b266
commit
1949a06480
6 files changed
+70
-5
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user