def clear_memo_cache(source):
 d_pth = os.path.join(settings.MEMO_DIR, domain_to_filename(source.domain))
 if os.path.exists(d_pth):
  os.remove(d_pth)
 else:
  print ('memo file for', source.domain, 'has already been deleted!')

def clear_memo_cache ( source ) : d_pth = os . path . join ( settings . MEMO_DIR , domain_to_filename ( source . domain ) ) if os . path . exists ( d_pth ) : os . remove ( d_pth ) else : print ( 'memo file for' , source . domain , 'has already been deleted!' )
clears the memoization cache for this specific news domain .