return false;
} } // else cache is ON
else { // Flow
// 1. check cache
// 2. if there is a hit, make sure it's fresh
// 3. if cached obj fails freshness check, fetch remote
// 4. if remote fails, return stale object, or error
$cache =
new RSSCache( MAGPIE_CACHE_DIR, MAGPIE_CACHE_AGE
);
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
) {