From 56cd195fbd50ca92a574b4202793ada418b1f193 Mon Sep 17 00:00:00 2001 From: filip Date: Tue, 24 Feb 2015 15:00:31 +0100 Subject: update SimplePie to the latest version 1.3.1 --- lib/news.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/news.php') diff --git a/lib/news.php b/lib/news.php index 613103849..397c18b52 100644 --- a/lib/news.php +++ b/lib/news.php @@ -1,7 +1,7 @@ set_feed_url($url); + $feed->set_cache_location(realpath(G_APP_ROOT . '/_nav/var/tmp/cache')); + $feed->set_cache_duration(3600 * $cache_timeout); $feed->set_timeout(2); $feed->enable_order_by_date(true); + $feed->init(); $feed->handle_content_type(); $items = array(); -- cgit v1.2.1