summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-02 11:41:15 -0700
committerAndrew Dolgov <[email protected]>2013-04-02 11:41:15 -0700
commit2f76e8583db5949a8e4d1179d18bcc2473dcaccf (patch)
tree30a290350e10befd921050cf0f796a25f76fe245 /include/rssfuncs.php
parent8ef9645da0374d65683a4ed4762b8f2e6d36016e (diff)
parent9ef8798bec84b3aa86dc699681ea4f21efb3cefa (diff)
Merge pull request #114 from ifireball/tunable-fetches
Allow tuning fetch timeouts from config.php
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r--include/rssfuncs.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index e3b1e44b2..ce197156c 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -286,7 +286,8 @@
$force_refetch = isset($_REQUEST["force_refetch"]);
$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,
$force_refetch ? 0 : max($last_updated_timestamp, $cache_timestamp));
if ($debug_enabled) {