summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-02-02 14:51:02 +0300
committerAndrew Dolgov <[email protected]>2016-02-02 14:51:02 +0300
commit0edf1d0dc0bce5c1473fce3feda1087784e49e22 (patch)
tree866742ce382a3060f542b09f8030b1bbe759bb0d /include/rssfuncs.php
parent891b77f90ec03d208c8ff5565315a0acc2432534 (diff)
update_rss_feed: disable support for http 304 for the time being
Diffstat (limited to 'include/rssfuncs.php')
-rwxr-xr-xinclude/rssfuncs.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 95ac4076f..bf6035677 100755
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -314,9 +314,7 @@
feed_url,auth_pass,cache_images,
mark_unread_on_update, owner_uid,
pubsub_state, auth_pass_encrypted,
- feed_language,
- (SELECT max(date_entered) FROM
- ttrss_entries, ttrss_user_entries where ref_id = id AND feed_id = '$feed') AS last_article_timestamp
+ feed_language
FROM ttrss_feeds WHERE id = '$feed'");
if (db_num_rows($result) == 0) {
@@ -324,11 +322,6 @@
return false;
}
- $last_article_timestamp = @strtotime(db_fetch_result($result, 0, "last_article_timestamp"));
-
- if (defined('_DISABLE_HTTP_304'))
- $last_article_timestamp = 0;
-
$owner_uid = db_fetch_result($result, 0, "owner_uid");
$mark_unread_on_update = sql_bool_to_bool(db_fetch_result($result,
0, "mark_unread_on_update"));
@@ -372,9 +365,10 @@
$rss_hash = false;
$force_refetch = isset($_REQUEST["force_refetch"]);
+ $feed_data = "";
foreach ($pluginhost->get_hooks(PluginHost::HOOK_FETCH_FEED) as $plugin) {
- $feed_data = $plugin->hook_fetch_feed($feed_data, $fetch_url, $owner_uid, $feed, $last_article_timestamp, $auth_login, $auth_pass);
+ $feed_data = $plugin->hook_fetch_feed($feed_data, $fetch_url, $owner_uid, $feed, 0, $auth_login, $auth_pass);
}
// try cache
@@ -404,12 +398,10 @@
_debug("not using CURL due to open_basedir restrictions");
}
- _debug("If-Modified-Since: ".gmdate('D, d M Y H:i:s \G\M\T', $last_article_timestamp), $debug_enabled);
-
$feed_data = fetch_file_contents($fetch_url, false,
$auth_login, $auth_pass, false,
$no_cache ? FEED_FETCH_NO_CACHE_TIMEOUT : FEED_FETCH_TIMEOUT,
- $force_refetch ? 0 : $last_article_timestamp);
+ 0);
global $fetch_curl_used;