def del_cached_content(location):
 def location_str(loc):
  'Force the location to a Unicode string.'
  return unicode(loc).encode('utf-8')
 locations = [location_str(location)]
 try:
  locations.append(location_str(location.replace(run=None)))
 except InvalidKeyError:
  pass
 CONTENT_CACHE.delete_many(locations, version=STATIC_CONTENT_VERSION)

def del_cached_content ( location ) : def location_str ( loc ) : return unicode ( loc ) . encode ( 'utf-8' ) locations = [ location_str ( location ) ] try : locations . append ( location_str ( location . replace ( run = None ) ) ) except InvalidKeyError : pass CONTENT_CACHE . delete_many ( locations , version = STATIC_CONTENT_VERSION )
delete content for the given location .