def save_cache(filename):

    global MODULES
    global MODULES_CHANGED

    if MODULES_CHANGED:
        logger.debug('saving cache...')

        f = file(filename, 'wb')
        pickle.dump(MODULES, f, 1)
        f.close()

        logger.debug('cache saved')

    return
Saves the module cache to disk.
dataset/ETHPy150Open enthought/envisage/envisage/developer/code_browser/enclbr.py/save_cache