title = trim($newsItem->title); // $this->message("browsing item ".var_export($newsItem, true)); if(empty($newsItem->guid)) { $item->uri = $newsItem->link; } else { $item->uri = $newsItem->guid; } // now load that uri from cache // $this->message("now loading page ".$item->uri); // $articlePage = str_get_html($this->get_cached($item->uri)); // $content = $articlePage->find('.post-container', 0); $item->content = $newsItem->description; $item->name = $newsItem->author; $item->timestamp = $this->RSS_2_0_time_to_timestamp($newsItem); return $item; } public function getCacheDuration(){ return 7200; // 2h hours } }