diff options
author | filip <filip.komar@gmail.com> | 2020-05-25 21:48:12 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2020-05-25 21:48:12 +0200 |
commit | bfde2befba9b6acc2c8ef619b9a2e266cb8b53a5 (patch) | |
tree | d5b4abc70136c74ff5999d393e77bec1ccad0d9f | |
parent | 7102c861c6e432dfc3046f093d239eeb64e180fb (diff) | |
download | www-bfde2befba9b6acc2c8ef619b9a2e266cb8b53a5.tar www-bfde2befba9b6acc2c8ef619b9a2e266cb8b53a5.tar.gz www-bfde2befba9b6acc2c8ef619b9a2e266cb8b53a5.tar.bz2 www-bfde2befba9b6acc2c8ef619b9a2e266cb8b53a5.tar.xz www-bfde2befba9b6acc2c8ef619b9a2e266cb8b53a5.zip |
set default cache_timeout to 1 hour instead of 5
-rw-r--r-- | lib/news.php | 4 |
1 files 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'; |