mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fixed blog RSS caching
This commit is contained in:
parent
d556d052c0
commit
968b9ff467
@ -47,7 +47,8 @@ class RSSWidget extends Widget {
|
|||||||
|
|
||||||
include_once(Director::getAbsFile(SAPPHIRE_DIR . '/thirdparty/simplepie/SimplePie.php'));
|
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();
|
$this->feed->init();
|
||||||
if($items = $this->feed->get_items(0, $this->NumberToShow)) {
|
if($items = $this->feed->get_items(0, $this->NumberToShow)) {
|
||||||
foreach($items as $item) {
|
foreach($items as $item) {
|
||||||
|
Loading…
Reference in New Issue
Block a user