From 968b9ff4674cd152a4d40508ccaf9ec285f74115 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 12 Dec 2008 23:14:47 +0000 Subject: [PATCH] Fixed blog RSS caching --- code/RSSWidget.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/RSSWidget.php b/code/RSSWidget.php index 7f167ac..ed9282e 100644 --- a/code/RSSWidget.php +++ b/code/RSSWidget.php @@ -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) {