def METHOD_NAME(settings):
    settings_cache_path = Path(f'settings_cache-{settings.server.version.release}.json')
    if getattr(settings.robottelo.settings, 'get_fresh', True):
        data = get_repos_config(settings)
        write_cache(settings_cache_path, data)
    else:
        try:
            data = read_cache(settings_cache_path)
        except FileNotFoundError:
            # no settings cache file exists
            logger.warning(
                f'The [{settings_cache_path}] cache file was not found.'
                'Config will be fetched now.'
            )
            data = get_repos_config(settings)
            write_cache(settings_cache_path, data)
    data['dynaconf_merge'] = True
    return data