mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Fix Panel Version Cache
This commit is contained in:
@@ -9,7 +9,7 @@ class SoftwareVersionService
|
||||
{
|
||||
public function latestPanelVersion(): string
|
||||
{
|
||||
return cache()->remember('wings:latest_version', now()->addMinutes(config('panel.cdn.cache_time', 60)), function () {
|
||||
return cache()->remember('panel:latest_version', now()->addMinutes(config('panel.cdn.cache_time', 60)), function () {
|
||||
try {
|
||||
$response = Http::timeout(5)->connectTimeout(1)->get('https://api.github.com/repos/pelican-dev/panel/releases/latest')->throw()->json();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user