Fixed blog RSS caching

This commit is contained in:
Sam Minnee 2008-12-12 23:14:47 +00:00
parent d556d052c0
commit 968b9ff467
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ class RSSWidget extends Widget {
include_once(Director::getAbsFile(SAPPHIRE_DIR . '/thirdparty/simplepie/SimplePie.php'));
$this->feed = new SimplePie($this->AbsoluteRssUrl);
$t1 = microtime(true);
$this->feed = new SimplePie($this->AbsoluteRssUrl, TEMP_FOLDER);
$this->feed->init();
if($items = $this->feed->get_items(0, $this->NumberToShow)) {
foreach($items as $item) {