dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9b184f
)
Oops, gotta use $exp here
author
Roan Kattouw
<catrope@users.mediawiki.org>
Sat, 21 Jun 2008 15:06:40 +0000
(15:06 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Sat, 21 Jun 2008 15:06:40 +0000
(15:06 +0000)
includes/api/ApiMain.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiMain.php
b/includes/api/ApiMain.php
index
b0096d0
..
69124a1
100644
(file)
--- a/
includes/api/ApiMain.php
+++ b/
includes/api/ApiMain.php
@@
-273,7
+273,7
@@
class ApiMain extends ApiBase {
// Set the cache expiration at the last moment, as any errors may change the expiration.
// if $this->mSquidMaxage == 0, the expiry time is set to the first second of unix epoch
$exp = min($smaxage, $maxage);
- $expires =
$exp == 0 ? 1 : time() + $this->mSquidMaxage
;
+ $expires =
($exp == 0 ? 1 : time() + $exp)
;
header('Expires: ' . wfTimestamp(TS_RFC2822, $expires));
header('Cache-Control: s-maxage=' . $smaxage . ', must-revalidate, max-age=' . $maxage);