def _cached_path_needs_update(ca_path, cache_length):
 exists = os.path.exists(ca_path)
 if (not exists):
  return True
 stats = os.stat(ca_path)
 if (stats.st_mtime < (time.time() - ((cache_length * 60) * 60))):
  return True
 if (stats.st_size == 0):
  return True
 return False

def _cached_path_needs_update ( ca_path , cache_length ) : exists = os . path . exists ( ca_path ) if ( not exists ) : return True stats = os . stat ( ca_path ) if ( stats . st_mtime < ( time . time ( ) - ( ( cache_length * 60 ) * 60 ) ) ) : return True if ( stats . st_size == 0 ) : return True return False
checks to see if a cache file needs to be refreshed .