Skip to content

Commit

Permalink
Fix to invalidate EOL cache on re-checks #2139
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Apr 29, 2024
1 parent 5911615 commit 9dcb1da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webmin/os-eol-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ sub eol_update_cache
{
my $webmin_version = &get_webmin_version();
if ($gconfig{'os_eol_db'} ne $webmin_version) {
# Invalidate EOL cache
foreach my $key ('os_eol_about', 'os_eol_expired',
'os_eol_expiring') {
delete($gconfig{$key});
}
# This is the first time we check
# EOL data or after Webmin update
my $eol_data = &eol_get_os_data();
Expand Down

0 comments on commit 9dcb1da

Please sign in to comment.