def update_cache_slug():
 cache_slug = get_unique_id()
 with open('cache_slug.yaml', 'r') as f:
  content = f.read()
 os.remove('cache_slug.yaml')
 content = content.replace('default', cache_slug)
 with open('cache_slug.yaml', 'w+') as d:
  d.write(content)

def update_cache_slug ( ) : cache_slug = get_unique_id ( ) with open ( 'cache_slug.yaml' , 'r' ) as f : content = f . read ( ) os . remove ( 'cache_slug.yaml' ) content = content . replace ( 'default' , cache_slug ) with open ( 'cache_slug.yaml' , 'w+' ) as d : d . write ( content )
updates the cache slug in cache_slug .