@@ -183,6 +183,9 @@ used or not if only a subset of elements is recorded.
183183Cache validity
184184--------------
185185
186+ From Modules 5.3 to 5.5
187+ ^^^^^^^^^^^^^^^^^^^^^^^
188+
186189Cache file header indicates a Modules version number. It corresponds to the
187190Modules version:
188191
@@ -197,6 +200,35 @@ upgraded to a newer minor version (for instance from 5.3 to 5.4):
197200* better to ensure cache file is accurate for the Modules version as modulerc
198201 and modulefile commands may evolve from one version to another
199202
203+ Starting Modules 5.6
204+ ^^^^^^^^^^^^^^^^^^^^
205+
206+ Approach to cache validity is changed on Modules 5.6 to cover use cases where
207+ different Modules installation uses the same set of modulepaths. This is for
208+ instance the case when a service provides modulepaths with cache files in them
209+ and just requires a minimal version of Modules. Or on a computing center, when
210+ the same modulepaths are used by different supercomputers which may use
211+ different version of Modules at some point in time.
212+
213+ With this change the cache file header still indicates a Modules version
214+ number. But this version number now corresponds to the minimal Modules version
215+ able to use this cache file.
216+
217+ With such change, backward compatibility is expected on module cache Tcl
218+ commands. Addition of new commands will lead to an increase of the minimal
219+ version required. Argument change to existing command is not possible, only
220+ the introduction of optional argument will be ok (with increase of minimal
221+ version required).
222+
223+ When generating cache file, minimal version required is set back to ``5.3 `` as
224+ no change occurred on the cache file format since the introduction of the
225+ cache feature.
226+
227+ As minimal Modules version check code is the same for cache file than for
228+ modulefile since the introduction of the cache feature, cache file has always
229+ been taken into account as soon as the Modules version matches the minimal
230+ requirement.
231+
200232Cache usage
201233-----------
202234
0 commit comments