From bfde2befba9b6acc2c8ef619b9a2e266cb8b53a5 Mon Sep 17 00:00:00 2001 From: filip Date: Mon, 25 May 2020 21:48:12 +0200 Subject: set default cache_timeout to 1 hour instead of 5 --- lib/news.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/news.php b/lib/news.php index a67ad5f8d..47fc46ac4 100644 --- a/lib/news.php +++ b/lib/news.php @@ -53,7 +53,7 @@ function news_date($dt, $locale = 'en') * * @return array */ -function get_news($locale = 'en', $count = 5, $cache_timeout = 5) +function get_news($locale = 'en', $count = 5, $cache_timeout = 1) { return get_feed(blog_link($locale), $count, cache_timeout); @@ -61,7 +61,7 @@ function get_news($locale = 'en', $count = 5, $cache_timeout = 5) /** */ -function get_feed($url, $count = 5, $cache_timeout = 5) +function get_feed($url, $count = 5, $cache_timeout = 1) { include_once G_APP_ROOT . '/lib/simplepie/autoloader.php'; -- cgit v1.2.1