@locked_function
def exists_in_cache(cache_location, url, max_age):
 (hpath, bpath) = calculate_cache_path(cache_location, url)
 if (os.path.exists(hpath) and os.path.exists(bpath)):
  return (check_cache_time(hpath, max_age) and check_cache_time(bpath, max_age))
 else:
  return False

@ locked_function def exists_in_cache ( cache_location , url , max_age ) : ( hpath , bpath ) = calculate_cache_path ( cache_location , url ) if ( os . path . exists ( hpath ) and os . path . exists ( bpath ) ) : return ( check_cache_time ( hpath , max_age ) and check_cache_time ( bpath , max_age ) ) else : return False
returns if header and body cache file exist .