From f68da5b863ca300e5d20838e75c3400c98ef9094 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 26 Mar 2015 22:51:13 -0700 Subject: [PATCH] Made User actually use the mQuickTouched process cache Change-Id: I158eae2dac16b5fdacd095fff7fb031b42804a1e --- includes/User.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.20.1