Does "cacheDynamicVersionsFor" actually work?

Hi,

Does resolutionStrategy.cacheDynamicVersionsFor do anything in practice, please? I have added this configuration to my “root” build.gradle file:

subprojects {
    buildscript {
        configurations.all {
            resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
        }
    }

    ...
}

expecting Gradle always to compute the latest dynamic versions. However, all that ever seems to happen is that I end up scratching my head for an hour before Gradle suddenly decides to use the latest version itself and my broken build starts to work again.

I am currently using Gradle 7.2 and am not yet able to test this build with Gradle 7.3.

FWIW, I have no such issue with cacheChangingModulesFor and -SNAPSHOT dependencies.

Has anyone else noticed this please?
Cheers,
Chris