Skip to content

Commit

Permalink
Merge pull request pelican-dev#709 from pelican-dev/charles/fixversio
Browse files Browse the repository at this point in the history
Fix Panel Version Cache
  • Loading branch information
RMartinOscar authored Nov 14, 2024
2 parents fe4668a + d87d376 commit 24eb52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/Helpers/SoftwareVersionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 24eb52f

Please sign in to comment.