mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
load DO regions and plans dynamically (#368)
This commit is contained in:
@ -105,13 +105,6 @@ public static function plans(?int $id, ?string $region): array
|
||||
return [];
|
||||
}
|
||||
|
||||
if (Cache::get('plans-'.$id.'-'.$region)) {
|
||||
return Cache::get('plans-'.$id.'-'.$region);
|
||||
}
|
||||
|
||||
$plans = $profile->provider()->plans($region);
|
||||
Cache::put('plans-'.$id.'-'.$region, $plans, 60);
|
||||
|
||||
return $plans;
|
||||
return $profile->provider()->plans($region);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user