in reply to Regarding variables that

If you use the module, then you can just write an import method that reinitializes the cache.

This will, of course, only work if the script itself uses the module.