From 8401101d5051c4ccad140fc4b062fa9c780d06d9 Mon Sep 17 00:00:00 2001 From: Barak Korren Date: Mon, 1 Apr 2013 15:08:21 +0300 Subject: Moved hard-coded fetch timeout values into config file to allow site-level tuning --- include/rssfuncs.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/rssfuncs.php') diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 3bce14d33..5c37b7523 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -284,7 +284,8 @@ } $feed_data = fetch_file_contents($fetch_url, false, - $auth_login, $auth_pass, false, $no_cache ? 15 : 45, + $auth_login, $auth_pass, false, + $no_cache ? FEED_FETCH_NO_CACHE_TIMEOUT : FEED_FETCH_TIMEOUT, max($last_updated_timestamp, $cache_timestamp)); if ($debug_enabled) { -- cgit v1.2.3