From: Aaron Schulz Date: Fri, 27 Mar 2015 05:51:13 +0000 (-0700) Subject: Made User actually use the mQuickTouched process cache X-Git-Tag: 1.31.0-rc.0~11975 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=f68da5b863ca300e5d20838e75c3400c98ef9094;p=lhc%2Fweb%2Fwiklou.git Made User actually use the mQuickTouched process cache Change-Id: I158eae2dac16b5fdacd095fff7fb031b42804a1e --- diff --git a/includes/User.php b/includes/User.php index 2f9b716a6a..78693c114d 100644 --- 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(); }