def _get_placeholder_cache_version(placeholder, lang, site_id):
 from django.core.cache import cache
 key = _get_placeholder_cache_version_key(placeholder, lang, site_id)
 cached = cache.get(key)
 if cached:
  (version, vary_on_list) = cached
 else:
  version = int((time.time() * 1000000))
  vary_on_list = []
  _set_placeholder_cache_version(placeholder, lang, site_id, version, vary_on_list)
 return (version, vary_on_list)

def _get_placeholder_cache_version ( placeholder , lang , site_id ) : from django . core . cache import cache key = _get_placeholder_cache_version_key ( placeholder , lang , site_id ) cached = cache . get ( key ) if cached : ( version , vary_on_list ) = cached else : version = int ( ( time . time ( ) * 1000000 ) ) vary_on_list = [ ] _set_placeholder_cache_version ( placeholder , lang , site_id , version , vary_on_list ) return ( version , vary_on_list )
gets the s current version and vary-on header-names list .