I am trying to test all my library and main project's modules by using the static-check option in xdmp:spawn. I'm using a filesystem modules database and this works well for a small number of files. MarkLogic consumes memory as it loads each module until the box consumes all available memory and causes MarkLogic to crash as memory is exhausted.
I have discovered that there is a function called xdmp:module-cache-clear() in MarkLogic 8, but the same function does not seem to exist in MarkLogic version 7.
What would be the best way to clear the cache that is used by modules when they are loaded? Or Is there a way to keep modules from using a cache?