def _get_placeholder_cache_version_key(placeholder, lang, site_id):
 prefix = get_cms_setting('CACHE_PREFIX')
 key = '{prefix}|placeholder_cache_version|id:{id}|lang:{lang}|site:{site}'.format(prefix=prefix, id=placeholder.pk, lang=str(lang), site=site_id)
 if (len(key) > 250):
  key = '{prefix}|{hash}'.format(prefix=prefix, hash=hashlib.md5(key.encode('utf-8')).hexdigest())
 return key

def _get_placeholder_cache_version_key ( placeholder , lang , site_id ) : prefix = get_cms_setting ( 'CACHE_PREFIX' ) key = '{prefix}|placeholder_cache_version|id:{id}|lang:{lang}|site:{site}' . format ( prefix = prefix , id = placeholder . pk , lang = str ( lang ) , site = site_id ) if ( len ( key ) > 250 ) : key = '{prefix}|{hash}' . format ( prefix = prefix , hash = hashlib . md5 ( key . encode ( 'utf-8' ) ) . hexdigest ( ) ) return key
returns the version key for the given «placeholder» .