def set_placeholder_cache(placeholder, lang, site_id, content, request):
 from django.core.cache import cache
 key = _get_placeholder_cache_key(placeholder, lang, site_id, request)
 duration = min(get_cms_setting('CACHE_DURATIONS')['content'], placeholder.get_cache_expiration(request, now()))
 cache.set(key, content, duration)
 (version, vary_on_list) = _get_placeholder_cache_version(placeholder, lang, site_id)
 _set_placeholder_cache_version(placeholder, lang, site_id, version, vary_on_list, duration=duration)

def set_placeholder_cache ( placeholder , lang , site_id , content , request ) : from django . core . cache import cache key = _get_placeholder_cache_key ( placeholder , lang , site_id , request ) duration = min ( get_cms_setting ( 'CACHE_DURATIONS' ) [ 'content' ] , placeholder . get_cache_expiration ( request , now ( ) ) ) cache . set ( key , content , duration ) ( version , vary_on_list ) = _get_placeholder_cache_version ( placeholder , lang , site_id ) _set_placeholder_cache_version ( placeholder , lang , site_id , version , vary_on_list , duration = duration )
sets the placeholder cache with the rendered placeholder .