1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 21:25:55 +00:00

updating: do not use cache timestamp if it is unusable for current feed;

sort chronologically instead of random
This commit is contained in:
Andrew Dolgov
2013-04-24 13:21:40 +04:00
parent 37ddf5b7e7
commit 81c2066345
2 changed files with 6 additions and 5 deletions

View File

@@ -320,7 +320,7 @@
$ch = curl_init($url);
}
if ($timestamp) {
if ($timestamp && !$post_query) {
curl_setopt($ch, CURLOPT_HTTPHEADER,
array("If-Modified-Since: ".gmdate('D, d M Y H:i:s \G\M\T', $timestamp)));
}