init();
if ( !
isset($url) ) { // error("fetch_rss called without a url");
return false;
} // if cache is disabled
if ( !MAGPIE_CACHE_ON
) { // fetch file, and parse it
$resp =
_fetch_remote_file( $url );
if ( is_success( $resp->status
) ) { return _response_to_rss( $resp );
} else { // error("Failed to fetch $url and cache is off");
return false;
} } // else cache is ON
else { // Flow
// 1. check cache