From f696ceabf21fcdd60cd3e53b1e3bcffddb4cadab Mon Sep 17 00:00:00 2001 From: Robert McLay Date: Thu, 15 Apr 2021 15:19:08 -0500 Subject: [PATCH] Issue #511: Only rebuild spider cache when there are modules loaded or pending --- README.new | 3 +++ src/Var.lua | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.new b/README.new index 5ba721869..f183de0a0 100644 --- a/README.new +++ b/README.new @@ -67,3 +67,6 @@ Lmod 8.4+ * Now reporting that is-avail() is not working for TCL modulefiles (8.4.28) * Issue #505: Use now converts relative paths to abspath * Issue #507: Allow print statement in modulefiles. + (8.4.29) * Change messages to use --ignore_cache instead of --ignore-cache. + * Issue #511: Only rebuild spider caches if there are any loaded or pending modules. + diff --git a/src/Var.lua b/src/Var.lua index 07ebd59f8..a2a1415ff 100644 --- a/src/Var.lua +++ b/src/Var.lua @@ -111,8 +111,8 @@ local function chkMP(name, value, adding) mt:set_MPATH_change_flag() mt:updateMPathA(value) - -- Check to see if there are any currently loaded modules before looking to - -- rebuild the caches. + -- Check to see if there are any currently loaded or pending modules + -- before looking to rebuild the caches. dbg.print{"mt:empty(): ",mt:empty(), "\n"} if (not mt:empty()) then