if (MAGPIE_DEBUG
and $cache->ERROR
) { debug($cache->ERROR, E_USER_WARNING
);
} $cache_status = 0; // response of check_cache
$request_headers = array
(); // HTTP headers to send with fetch
$rss = 0; // parsed RSS object
$errormsg = 0; // errors, if any
if (!
$cache->ERROR
) { // return cache HIT, MISS, or STALE
$cache_status =
$cache->
check_cache( $url );
} // if object cached, and cache is fresh, return cached obj
if ( $cache_status == 'HIT'
) { $rss =
$cache->
get( $url );
if ( isset($rss) and $rss ) { $rss->from_cache = 1;
if ( MAGPIE_DEBUG > 1
) { debug("MagpieRSS: Cache HIT", E_USER_NOTICE
);
} return $rss;
}