com web/people: ACtually set the variable for the cache to work: js/userlisting.php
| From: | Hannes Magnusson | Date: | Mon, 10 Feb 2014 20:57:07 +0000 |
| Subject: | com web/people: ACtually set the variable for the cache to work: js/userlisting.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-18330@lists.php.net to get a copy of this message | ||
Commit: 17cdf0a9b3cb2e721b81ee129456eaf9d548704f
Author: Hannes Magnusson <bjori@mongodb.com> Mon, 10 Feb 2014 12:57:07 -0800
Parents: 24fe41242b79f9ba428c7a8811726caa19e25623
Branches: master
Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=17cdf0a9b3cb2e721b81ee129456eaf9d548704f
Log:
ACtually set the variable for the cache to work
Changed paths:
M js/userlisting.php
Diff:
diff --git a/js/userlisting.php b/js/userlisting.php
index 8ac0630..5fef03f 100644
--- a/js/userlisting.php
+++ b/js/userlisting.php
@@ -22,6 +22,7 @@ function getAllUsers() {
return $json;
}
+$now = $_SERVER["REQUEST_TIME"];
if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])) {
$last = strtotime($_SERVER["HTTP_IF_MODIFIED_SINCE"]);