@locked_function
def delete_from_cache(cache_location, url):
 (hpath, bpath) = calculate_cache_path(cache_location, url)
 try:
  if os.path.exists(hpath):
   os.remove(hpath)
  if os.path.exists(bpath):
   os.remove(bpath)
 except IOError:
  return True
 else:
  return False

@ locked_function def delete_from_cache ( cache_location , url ) : ( hpath , bpath ) = calculate_cache_path ( cache_location , url ) try : if os . path . exists ( hpath ) : os . remove ( hpath ) if os . path . exists ( bpath ) : os . remove ( bpath ) except IOError : return True else : return False
deletes a response in cache .