From 897662bac504d1d58567eb2e9c41eed168b710d4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 27 Mar 2024 13:11:22 +0100 Subject: [PATCH] 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 --- src/PVE/Storage/ESXiPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Storage/ESXiPlugin.pm b/src/PVE/Storage/ESXiPlugin.pm index 9c9f680..06da280 100644 --- a/src/PVE/Storage/ESXiPlugin.pm +++ b/src/PVE/Storage/ESXiPlugin.pm @@ -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($$$;$) {