concrete/src/Feed/FeedService.php
public function load($url, $cache = 3600)
    {
        if ($cache !== false) {
            Reader::setCache(new ZendCacheDriver('cache/expensive', $cache));
        }

        // Load the RSS feed, either from remote URL or from cache
        // (if specified above and still fresh)
        $feed = Reader::import($url);

        return $feed;
    }
public function load($url, $cache = 3600)
    {
        if ($cache !== false) {
            Reader::setCache(new ZendCacheDriver('cache/expensive', $cache));
        }

        // Load the RSS feed, either from remote URL or from cache
        // (if specified above and still fresh)
        $feed = Reader::import($url);

        return $feed;
    }
public function load ( $ url , $ cache = 3600 ) { if ( $ cache !== false ) { Reader :: setCache ( new ZendCacheDriver ( 'cache/expensive' , $ cache ) ) ; } // Load the RSS feed, either from remote URL or from cache // (if specified above and still fresh) $ feed = Reader :: import ( $ url ) ; return $ feed ; }
Loads a newsfeed object.

@param string $feedurl
@param int    $cache - number of seconds to cache the RSS feed data for
@return Reader
Loads a newsfeed object .