From 81c206634581595680ba784494f619ea977785f3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 24 Apr 2013 13:21:40 +0400 Subject: updating: do not use cache timestamp if it is unusable for current feed; sort chronologically instead of random --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 10a3504f2..72b20cd06 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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))); } -- cgit v1.2.3