mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 13:14:45 +02:00
Merge pull request #709 from pelican-dev/charles/fixversio
Fix Panel Version Cache
This commit is contained in:
commit
24eb52f7d6
@ -9,7 +9,7 @@ class SoftwareVersionService
|
|||||||
{
|
{
|
||||||
public function latestPanelVersion(): string
|
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 {
|
try {
|
||||||
$response = Http::timeout(5)->connectTimeout(1)->get('https://api.github.com/repos/pelican-dev/panel/releases/latest')->throw()->json();
|
$response = Http::timeout(5)->connectTimeout(1)->get('https://api.github.com/repos/pelican-dev/panel/releases/latest')->throw()->json();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user