def METHOD_NAME(cls, refresh):
    if refresh:
        cls._cache = {}
        return
    if (sys.version_info[0] == 2):
        path = '/tmp/mythwikiscripts.pickle'
        fmode = 'r'
    else:
        path = '/tmp/mythwikiscripts.pickle3'
        fmode = 'rb'
    if os.access(path, os.F_OK):
        try:
            fd = open(path, fmode)
            cls._cache = pickle.load(fd)
            fd.close()
        except:
            os.remove(path)
            cls._cache = {}
    else:
        cls._cache = {}