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:
95928ea
)
Made User actually use the mQuickTouched process cache
author
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 27 Mar 2015 05:51:13 +0000
(22:51 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 27 Mar 2015 05:51:13 +0000
(22:51 -0700)
Change-Id: I158eae2dac16b5fdacd095fff7fb031b42804a1e
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
2f9b716
..
78693c1
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-2309,7
+2309,9
@@
class User implements IDBAccessObject {
if ( $this->mQuickTouched === null ) {
$key = wfMemcKey( 'user-quicktouched', 'id', $this->mId );
$timestamp = $wgMemc->get( $key );
- if ( !$timestamp ) {
+ if ( $timestamp ) {
+ $this->mQuickTouched = $timestamp;
+ } else {
# Set the timestamp to get HTTP 304 cache hits
$this->touch();
}