5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-01-08 21:18:06 +03:00

esxi: reduce cache invalidation time to 30s

Reduce the time the cache stays valid from 60s to 30s, while this
could double the amount of requests in the worst case, it's still not
that frequent and also halves the maximal time a user has to wait to
see changes on the ESXi side to appear here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2024-03-27 13:11:22 +01:00
parent b29a8c3596
commit 897662bac5

View File

@ -115,7 +115,7 @@ my sub check_esxi_import_package : prototype() {
my sub is_old : prototype($) {
my ($file) = @_;
my $mtime = (CORE::stat($file))[9];
return !defined($mtime) || ($mtime + 60) < CORE::time();
return !defined($mtime) || ($mtime + 30) < CORE::time();
}
sub get_manifest : prototype($$$;$) {