Made User actually use the mQuickTouched process cache
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 27 Mar 2015 05:51:13 +0000 (22:51 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 27 Mar 2015 05:51:13 +0000 (22:51 -0700)
Change-Id: I158eae2dac16b5fdacd095fff7fb031b42804a1e

includes/User.php

index 2f9b716..78693c1 100644 (file)
@@ -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();
                                }