Lua package.loaded cache behavior during module source updates
In Lua (versions 5.1 through 5.4), the require function utilizes the package.loaded table to cache modules. Once a module is successfully loaded, subsequent calls to require return the cached value from this table without re-executing the source chunk from disk. This mechanism creates a challenge when source files are modified during the execution of a long-