summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-24 13:21:40 +0400
committerAndrew Dolgov <[email protected]>2013-04-24 13:21:40 +0400
commit81c206634581595680ba784494f619ea977785f3 (patch)
tree7fcb7c944bafb0c20f93a0ec01dee91533b40ea1 /include/functions.php
parent37ddf5b7e76114239085badfc0b1e5f94ca32480 (diff)
updating: do not use cache timestamp if it is unusable for current feed;
sort chronologically instead of random
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
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)));
}