Skip to content

Commit

Permalink
Issue #511: Only rebuild spider cache when there are modules loaded o…
Browse files Browse the repository at this point in the history
…r pending
  • Loading branch information
Robert McLay committed Apr 15, 2021
1 parent f434d56 commit f696cea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.new
Original file line number Diff line number Diff line change
Expand Up @@ -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.

4 changes: 2 additions & 2 deletions src/Var.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f696cea

Please sign in to comment.